1
0
Jelajahi Sumber

Move ivars from `obj["@x"]` to `obj.x`.

Step 2: Compiler compiles dot notation,
recompile and apply to code base.
Herby Vojčík 5 tahun lalu
induk
melakukan
6a225e5a0d
2 mengubah file dengan 6 tambahan dan 6 penghapusan
  1. 5 5
      src/Silk-Tests.js
  2. 1 1
      src/Silk.js

+ 5 - 5
src/Silk-Tests.js

@@ -153,10 +153,10 @@ var self=this,$self=this;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 return $core.withContext(function($ctx1) {
 //>>excludeEnd("ctx");
-$self["@fixtureDiv"]=$recv(document)._createElement_("div");
-$recv($recv(document)._body())._appendChild_($self["@fixtureDiv"]);
-$recv($self["@fixtureDiv"])._setAttribute_to_("id","fixture");
-$recv($self["@fixtureDiv"])._innerHTML_("sentinel");
+$self.fixtureDiv=$recv(document)._createElement_("div");
+$recv($recv(document)._body())._appendChild_($self.fixtureDiv);
+$recv($self.fixtureDiv)._setAttribute_to_("id","fixture");
+$recv($self.fixtureDiv)._innerHTML_("sentinel");
 return self;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 }, function($ctx1) {$ctx1.fill(self,"setUp",{},$globals.SilkTest)});
@@ -187,7 +187,7 @@ $1=$recv(document)._body();
 $ctx1.sendIdx["body"]=1;
 //>>excludeEnd("ctx");
 lastChild=$recv($1)._lastChild();
-$self._assert_equals_(lastChild,$self["@fixtureDiv"]);
+$self._assert_equals_(lastChild,$self.fixtureDiv);
 $recv($recv(document)._body())._removeChild_(lastChild);
 return self;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);

+ 1 - 1
src/Silk.js

@@ -183,7 +183,7 @@ var self=this,$self=this;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 return $core.withContext(function($ctx1) {
 //>>excludeEnd("ctx");
-$recv($self["@key"])._attrPut_on_($self["@value"],aSilk);
+$recv($self.key)._attrPut_on_($self.value,aSilk);
 return self;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 }, function($ctx1) {$ctx1.fill(self,"renderOnSilk:",{aSilk:aSilk},$globals.Association)});