Sfoglia il codice sorgente

use String#trim() to fix issues with IE

Kyle P Davis 11 anni fa
parent
commit
8e2132fd0b
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      index.js

+ 2 - 2
index.js

@@ -100,7 +100,7 @@ function($scope, $timeout, $interpolate) {
 			throw new Error("invalid exampleName");
 		var example = $scope.examples[$scope.exampleName];
 
-		$scope.inputs = "exports.inputs = " + getFormattedDocs(example.inputs).trimRight() + ";\n";
+		$scope.inputs = "exports.inputs = " + getFormattedDocs(example.inputs).trim() + ";\n";
 
 		$scope.pipeline = "exports.pipeline = [\n" +
 			"\n\t" +
@@ -139,7 +139,7 @@ function($scope, $timeout, $interpolate) {
 
 				var output = aggregate(pipeline, inputs);
 
-				$scope.output = "exports.outputs = " + getFormattedDocs(output).trimRight() + ";\n";
+				$scope.output = "exports.outputs = " + getFormattedDocs(output).trim() + ";\n";
 
 				$scope.isRunning = false;