Browse Source

Package >> amdNamespace* reformatting

Nicolas Petton 11 years ago
parent
commit
7be837e22b
3 changed files with 16 additions and 14 deletions
  1. 4 3
      js/Importer-Exporter.deploy.js
  2. 6 5
      js/Importer-Exporter.js
  3. 6 6
      st/Importer-Exporter.st

+ 4 - 3
js/Importer-Exporter.deploy.js

@@ -1593,9 +1593,10 @@ fn: function (aString){
 var self=this;
 return smalltalk.withContext(function($ctx1) { 
 
-	if (!self.transport) { self.transport = { type: 'amd' }; }
-	if (self.transport.type !== 'amd') { throw new Error('Package '+self._name()+' has transport type '+self.transport.type+', not "amd".'); }
-	self.transport.amdNamespace = aString;;
+		if (!self.transport) { self.transport = { type: 'amd' }; }
+		if (self.transport.type !== 'amd') { throw new Error('Package '+self._name()+' has transport type '+self.transport.type+', not "amd".'); }
+		self.transport.amdNamespace = aString;
+	;
 return self}, function($ctx1) {$ctx1.fill(self,"amdNamespace:",{aString:aString},smalltalk.Package)})},
 messageSends: []}),
 smalltalk.Package);

+ 6 - 5
js/Importer-Exporter.js

@@ -2022,7 +2022,7 @@ return smalltalk.withContext(function($ctx1) {
 return (self.transport && self.transport.amdNamespace) || nil;
 return self}, function($ctx1) {$ctx1.fill(self,"amdNamespace",{},smalltalk.Package)})},
 args: [],
-source: "amdNamespace\x0a<return (self.transport && self.transport.amdNamespace) || nil>",
+source: "amdNamespace\x0a\x09<return (self.transport && self.transport.amdNamespace) || nil>",
 messageSends: [],
 referencedClasses: []
 }),
@@ -2036,12 +2036,13 @@ fn: function (aString){
 var self=this;
 return smalltalk.withContext(function($ctx1) { 
 
-	if (!self.transport) { self.transport = { type: 'amd' }; }
-	if (self.transport.type !== 'amd') { throw new Error('Package '+self._name()+' has transport type '+self.transport.type+', not "amd".'); }
-	self.transport.amdNamespace = aString;;
+		if (!self.transport) { self.transport = { type: 'amd' }; }
+		if (self.transport.type !== 'amd') { throw new Error('Package '+self._name()+' has transport type '+self.transport.type+', not "amd".'); }
+		self.transport.amdNamespace = aString;
+	;
 return self}, function($ctx1) {$ctx1.fill(self,"amdNamespace:",{aString:aString},smalltalk.Package)})},
 args: ["aString"],
-source: "amdNamespace: aString\x0a<\x0a\x09if (!self.transport) { self.transport = { type: 'amd' }; }\x0a\x09if (self.transport.type !== 'amd') { throw new Error('Package '+self._name()+' has transport type '+self.transport.type+', not \x22amd\x22.'); }\x0a\x09self.transport.amdNamespace = aString;\x0a>",
+source: "amdNamespace: aString\x0a\x09<\x0a\x09\x09if (!self.transport) { self.transport = { type: 'amd' }; }\x0a\x09\x09if (self.transport.type !== 'amd') { throw new Error('Package '+self._name()+' has transport type '+self.transport.type+', not \x22amd\x22.'); }\x0a\x09\x09self.transport.amdNamespace = aString;\x0a\x09>",
 messageSends: [],
 referencedClasses: []
 }),

+ 6 - 6
st/Importer-Exporter.st

@@ -898,15 +898,15 @@ forRecipe: aRecipe
 !Package methodsFor: '*Importer-Exporter'!
 
 amdNamespace
-<return (self.transport && self.transport.amdNamespace) || nil>
+	<return (self.transport && self.transport.amdNamespace) || nil>
 !
 
 amdNamespace: aString
-<
-	if (!!self.transport) { self.transport = { type: 'amd' }; }
-	if (self.transport.type !!== 'amd') { throw new Error('Package '+self._name()+' has transport type '+self.transport.type+', not "amd".'); }
-	self.transport.amdNamespace = aString;
->
+	<
+		if (!!self.transport) { self.transport = { type: 'amd' }; }
+		if (self.transport.type !!== 'amd') { throw new Error('Package '+self._name()+' has transport type '+self.transport.type+', not "amd".'); }
+		self.transport.amdNamespace = aString;
+	>
 !
 
 commit