|
@@ -24,12 +24,12 @@ $core.method({
|
|
selector: "=",
|
|
selector: "=",
|
|
protocol: "comparing",
|
|
protocol: "comparing",
|
|
fn: function (aDomite){
|
|
fn: function (aDomite){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
var $3,$2,$5,$4,$6,$1;
|
|
var $3,$2,$5,$4,$6,$1;
|
|
-$3=self._class();
|
|
|
|
|
|
+$3=$self._class();
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
$ctx1.sendIdx["class"]=1;
|
|
$ctx1.sendIdx["class"]=1;
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
@@ -41,7 +41,7 @@ $1=$recv($2)._and_((function(){
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx2) {
|
|
return $core.withContext(function($ctx2) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-$5=self._element();
|
|
|
|
|
|
+$5=$self._element();
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
$ctx2.sendIdx["element"]=1;
|
|
$ctx2.sendIdx["element"]=1;
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
@@ -53,7 +53,7 @@ return $recv($4)._and_((function(){
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx3) {
|
|
return $core.withContext(function($ctx3) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-$6=self._reference();
|
|
|
|
|
|
+$6=$self._reference();
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
$ctx3.sendIdx["reference"]=1;
|
|
$ctx3.sendIdx["reference"]=1;
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
@@ -88,11 +88,11 @@ $core.method({
|
|
selector: "allAt:",
|
|
selector: "allAt:",
|
|
protocol: "accessing",
|
|
protocol: "accessing",
|
|
fn: function (aString){
|
|
fn: function (aString){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-return $recv(self._class())._wrap_($recv($globals.PlatformDom)._toArray_($recv(self._element())._querySelectorAll_(aString)));
|
|
|
|
|
|
+return $recv($self._class())._wrap_($recv($globals.PlatformDom)._toArray_($recv($self._element())._querySelectorAll_(aString)));
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"allAt:",{aString:aString},$globals.Domite)});
|
|
}, function($ctx1) {$ctx1.fill(self,"allAt:",{aString:aString},$globals.Domite)});
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
@@ -111,8 +111,8 @@ $core.method({
|
|
selector: "asDomNode",
|
|
selector: "asDomNode",
|
|
protocol: "converting",
|
|
protocol: "converting",
|
|
fn: function (){
|
|
fn: function (){
|
|
-var self=this;
|
|
|
|
-return self["@element"];
|
|
|
|
|
|
+var self=this,$self=this;
|
|
|
|
+return $self["@element"];
|
|
|
|
|
|
},
|
|
},
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
@@ -129,11 +129,11 @@ $core.method({
|
|
selector: "asJQuery",
|
|
selector: "asJQuery",
|
|
protocol: "converting",
|
|
protocol: "converting",
|
|
fn: function (){
|
|
fn: function (){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-return $recv(self._asDomNode())._asJQuery();
|
|
|
|
|
|
+return $recv($self._asDomNode())._asJQuery();
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"asJQuery",{},$globals.Domite)});
|
|
}, function($ctx1) {$ctx1.fill(self,"asJQuery",{},$globals.Domite)});
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
@@ -152,11 +152,11 @@ $core.method({
|
|
selector: "at:",
|
|
selector: "at:",
|
|
protocol: "accessing",
|
|
protocol: "accessing",
|
|
fn: function (aString){
|
|
fn: function (aString){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-return $recv(self._class())._fromElement_($recv(self._element())._querySelector_(aString));
|
|
|
|
|
|
+return $recv($self._class())._fromElement_($recv($self._element())._querySelector_(aString));
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"at:",{aString:aString},$globals.Domite)});
|
|
}, function($ctx1) {$ctx1.fill(self,"at:",{aString:aString},$globals.Domite)});
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
@@ -175,11 +175,11 @@ $core.method({
|
|
selector: "atEnd",
|
|
selector: "atEnd",
|
|
protocol: "testing",
|
|
protocol: "testing",
|
|
fn: function (){
|
|
fn: function (){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-return $recv(self._reference())._isNil();
|
|
|
|
|
|
+return $recv($self._reference())._isNil();
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"atEnd",{},$globals.Domite)});
|
|
}, function($ctx1) {$ctx1.fill(self,"atEnd",{},$globals.Domite)});
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
@@ -198,11 +198,11 @@ $core.method({
|
|
selector: "atStart",
|
|
selector: "atStart",
|
|
protocol: "testing",
|
|
protocol: "testing",
|
|
fn: function (){
|
|
fn: function (){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-return $recv(self._reference()).__eq($recv(self._element())._firstChild());
|
|
|
|
|
|
+return $recv($self._reference()).__eq($recv($self._element())._firstChild());
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"atStart",{},$globals.Domite)});
|
|
}, function($ctx1) {$ctx1.fill(self,"atStart",{},$globals.Domite)});
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
@@ -221,14 +221,14 @@ $core.method({
|
|
selector: "attrAt:",
|
|
selector: "attrAt:",
|
|
protocol: "accessing",
|
|
protocol: "accessing",
|
|
fn: function (aString){
|
|
fn: function (aString){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
var $1;
|
|
var $1;
|
|
-$1=$recv(self["@element"])._hasAttribute_(aString);
|
|
|
|
|
|
+$1=$recv($self["@element"])._hasAttribute_(aString);
|
|
if($core.assert($1)){
|
|
if($core.assert($1)){
|
|
-return $recv(self["@element"])._getAttribute_(aString);
|
|
|
|
|
|
+return $recv($self["@element"])._getAttribute_(aString);
|
|
} else {
|
|
} else {
|
|
return nil;
|
|
return nil;
|
|
}
|
|
}
|
|
@@ -251,11 +251,11 @@ $core.method({
|
|
selector: "attrAt:put:",
|
|
selector: "attrAt:put:",
|
|
protocol: "accessing",
|
|
protocol: "accessing",
|
|
fn: function (aString,anotherString){
|
|
fn: function (aString,anotherString){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-$recv(self["@element"])._setAttribute_to_(aString,anotherString);
|
|
|
|
|
|
+$recv($self["@element"])._setAttribute_to_(aString,anotherString);
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"attrAt:put:",{aString:aString,anotherString:anotherString},$globals.Domite)});
|
|
}, function($ctx1) {$ctx1.fill(self,"attrAt:put:",{aString:aString,anotherString:anotherString},$globals.Domite)});
|
|
@@ -275,17 +275,17 @@ $core.method({
|
|
selector: "back",
|
|
selector: "back",
|
|
protocol: "reading",
|
|
protocol: "reading",
|
|
fn: function (){
|
|
fn: function (){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
var $1;
|
|
var $1;
|
|
-$1=self._atStart();
|
|
|
|
|
|
+$1=$self._atStart();
|
|
if($core.assert($1)){
|
|
if($core.assert($1)){
|
|
return nil;
|
|
return nil;
|
|
} else {
|
|
} else {
|
|
-self._setToBack();
|
|
|
|
-return self._peek();
|
|
|
|
|
|
+$self._setToBack();
|
|
|
|
+return $self._peek();
|
|
}
|
|
}
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -306,11 +306,11 @@ $core.method({
|
|
selector: "canSetToUpperLevel",
|
|
selector: "canSetToUpperLevel",
|
|
protocol: "testing",
|
|
protocol: "testing",
|
|
fn: function (){
|
|
fn: function (){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-return $recv($recv(self._element())._parentNode())._notNil();
|
|
|
|
|
|
+return $recv($recv($self._element())._parentNode())._notNil();
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"canSetToUpperLevel",{},$globals.Domite)});
|
|
}, function($ctx1) {$ctx1.fill(self,"canSetToUpperLevel",{},$globals.Domite)});
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
@@ -329,13 +329,13 @@ $core.method({
|
|
selector: "cutUpTo:",
|
|
selector: "cutUpTo:",
|
|
protocol: "deletion",
|
|
protocol: "deletion",
|
|
fn: function (aDomite){
|
|
fn: function (aDomite){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
|
|
|
|
var result = document.createDocumentFragment(),
|
|
var result = document.createDocumentFragment(),
|
|
- start = self["@reference"],
|
|
|
|
|
|
+ start = $self["@reference"],
|
|
end = aDomite["@reference"],
|
|
end = aDomite["@reference"],
|
|
tmp;
|
|
tmp;
|
|
while (start && start != end) {
|
|
while (start && start != end) {
|
|
@@ -343,8 +343,8 @@ return $core.withContext(function($ctx1) {
|
|
start = start.nextSibling;
|
|
start = start.nextSibling;
|
|
result.appendChild(tmp);
|
|
result.appendChild(tmp);
|
|
}
|
|
}
|
|
- self["@reference"] = start;
|
|
|
|
- return self._class()._fromElement_(result);;
|
|
|
|
|
|
+ $self["@reference"] = start;
|
|
|
|
+ return $self._class()._fromElement_(result);;
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"cutUpTo:",{aDomite:aDomite},$globals.Domite)});
|
|
}, function($ctx1) {$ctx1.fill(self,"cutUpTo:",{aDomite:aDomite},$globals.Domite)});
|
|
@@ -352,7 +352,7 @@ return self;
|
|
},
|
|
},
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
args: ["aDomite"],
|
|
args: ["aDomite"],
|
|
-source: "cutUpTo: aDomite\x0a<inlineJS: '\x0a\x09var result = document.createDocumentFragment(),\x0a\x09\x09start = self[\x22@reference\x22],\x0a\x09\x09end = aDomite[\x22@reference\x22],\x0a\x09\x09tmp;\x0a\x09while (start && start != end) {\x0a\x09\x09tmp = start;\x0a\x09\x09start = start.nextSibling;\x0a\x09\x09result.appendChild(tmp);\x0a\x09}\x0a\x09self[\x22@reference\x22] = start;\x0a\x09return self._class()._fromElement_(result);\x0a'>",
|
|
|
|
|
|
+source: "cutUpTo: aDomite\x0a<inlineJS: '\x0a\x09var result = document.createDocumentFragment(),\x0a\x09\x09start = $self[\x22@reference\x22],\x0a\x09\x09end = aDomite[\x22@reference\x22],\x0a\x09\x09tmp;\x0a\x09while (start && start != end) {\x0a\x09\x09tmp = start;\x0a\x09\x09start = start.nextSibling;\x0a\x09\x09result.appendChild(tmp);\x0a\x09}\x0a\x09$self[\x22@reference\x22] = start;\x0a\x09return $self._class()._fromElement_(result);\x0a'>",
|
|
referencedClasses: [],
|
|
referencedClasses: [],
|
|
//>>excludeEnd("ide");
|
|
//>>excludeEnd("ide");
|
|
messageSends: []
|
|
messageSends: []
|
|
@@ -364,8 +364,8 @@ $core.method({
|
|
selector: "element",
|
|
selector: "element",
|
|
protocol: "accessing",
|
|
protocol: "accessing",
|
|
fn: function (){
|
|
fn: function (){
|
|
-var self=this;
|
|
|
|
-return self["@element"];
|
|
|
|
|
|
+var self=this,$self=this;
|
|
|
|
+return $self["@element"];
|
|
|
|
|
|
},
|
|
},
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
@@ -382,8 +382,8 @@ $core.method({
|
|
selector: "element:",
|
|
selector: "element:",
|
|
protocol: "accessing",
|
|
protocol: "accessing",
|
|
fn: function (anObject){
|
|
fn: function (anObject){
|
|
-var self=this;
|
|
|
|
-self["@element"]=anObject;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
|
|
+$self["@element"]=anObject;
|
|
return self;
|
|
return self;
|
|
|
|
|
|
},
|
|
},
|
|
@@ -401,11 +401,11 @@ $core.method({
|
|
selector: "fire:",
|
|
selector: "fire:",
|
|
protocol: "events",
|
|
protocol: "events",
|
|
fn: function (aString){
|
|
fn: function (aString){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-self._fire_detail_(aString,nil._asJavaScriptObject());
|
|
|
|
|
|
+$self._fire_detail_(aString,nil._asJavaScriptObject());
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"fire:",{aString:aString},$globals.Domite)});
|
|
}, function($ctx1) {$ctx1.fill(self,"fire:",{aString:aString},$globals.Domite)});
|
|
@@ -425,11 +425,11 @@ $core.method({
|
|
selector: "fire:detail:",
|
|
selector: "fire:detail:",
|
|
protocol: "events",
|
|
protocol: "events",
|
|
fn: function (aString,anObject){
|
|
fn: function (aString,anObject){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-self._fireEvent_($recv($globals.PlatformDom)._newCustomEvent_detail_(aString,anObject));
|
|
|
|
|
|
+$self._fireEvent_($recv($globals.PlatformDom)._newCustomEvent_detail_(aString,anObject));
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"fire:detail:",{aString:aString,anObject:anObject},$globals.Domite)});
|
|
}, function($ctx1) {$ctx1.fill(self,"fire:detail:",{aString:aString,anObject:anObject},$globals.Domite)});
|
|
@@ -449,11 +449,11 @@ $core.method({
|
|
selector: "fireEvent:",
|
|
selector: "fireEvent:",
|
|
protocol: "events",
|
|
protocol: "events",
|
|
fn: function (anEvent){
|
|
fn: function (anEvent){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-$recv(self._asDomNode())._dispatchEvent_(anEvent);
|
|
|
|
|
|
+$recv($self._asDomNode())._dispatchEvent_(anEvent);
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"fireEvent:",{anEvent:anEvent},$globals.Domite)});
|
|
}, function($ctx1) {$ctx1.fill(self,"fireEvent:",{anEvent:anEvent},$globals.Domite)});
|
|
@@ -473,7 +473,7 @@ $core.method({
|
|
selector: "initialize",
|
|
selector: "initialize",
|
|
protocol: "initialization",
|
|
protocol: "initialization",
|
|
fn: function (){
|
|
fn: function (){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
@@ -481,12 +481,12 @@ return $core.withContext(function($ctx1) {
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
$ctx1.supercall = true,
|
|
$ctx1.supercall = true,
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-($globals.Domite.superclass||$boot.nilAsClass).fn.prototype._initialize.apply($recv(self), []));
|
|
|
|
|
|
+($globals.Domite.superclass||$boot.nilAsClass).fn.prototype._initialize.apply($self, []));
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
$ctx1.supercall = false;
|
|
$ctx1.supercall = false;
|
|
//>>excludeEnd("ctx");;
|
|
//>>excludeEnd("ctx");;
|
|
-self["@element"]=$recv(document)._body();
|
|
|
|
-self["@reference"]=nil._asJavaScriptObject();
|
|
|
|
|
|
+$self["@element"]=$recv(document)._body();
|
|
|
|
+$self["@reference"]=nil._asJavaScriptObject();
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"initialize",{},$globals.Domite)});
|
|
}, function($ctx1) {$ctx1.fill(self,"initialize",{},$globals.Domite)});
|
|
@@ -506,11 +506,11 @@ $core.method({
|
|
selector: "isInvalid",
|
|
selector: "isInvalid",
|
|
protocol: "testing",
|
|
protocol: "testing",
|
|
fn: function (){
|
|
fn: function (){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-return $recv(self._element())._isNil();
|
|
|
|
|
|
+return $recv($self._element())._isNil();
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"isInvalid",{},$globals.Domite)});
|
|
}, function($ctx1) {$ctx1.fill(self,"isInvalid",{},$globals.Domite)});
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
@@ -529,19 +529,19 @@ $core.method({
|
|
selector: "next",
|
|
selector: "next",
|
|
protocol: "reading",
|
|
protocol: "reading",
|
|
fn: function (){
|
|
fn: function (){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
var $1;
|
|
var $1;
|
|
-$1=self._atEnd();
|
|
|
|
|
|
+$1=$self._atEnd();
|
|
if($core.assert($1)){
|
|
if($core.assert($1)){
|
|
return nil;
|
|
return nil;
|
|
} else {
|
|
} else {
|
|
var result;
|
|
var result;
|
|
-result=self._peek();
|
|
|
|
|
|
+result=$self._peek();
|
|
result;
|
|
result;
|
|
-self._setToNext();
|
|
|
|
|
|
+$self._setToNext();
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
return self;
|
|
return self;
|
|
@@ -563,11 +563,11 @@ $core.method({
|
|
selector: "nextPut:",
|
|
selector: "nextPut:",
|
|
protocol: "insertion",
|
|
protocol: "insertion",
|
|
fn: function (anObject){
|
|
fn: function (anObject){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-self._nextPutString_($recv(anObject)._printString());
|
|
|
|
|
|
+$self._nextPutString_($recv(anObject)._printString());
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"nextPut:",{anObject:anObject},$globals.Domite)});
|
|
}, function($ctx1) {$ctx1.fill(self,"nextPut:",{anObject:anObject},$globals.Domite)});
|
|
@@ -587,11 +587,11 @@ $core.method({
|
|
selector: "nextPutDomNode:",
|
|
selector: "nextPutDomNode:",
|
|
protocol: "insertion",
|
|
protocol: "insertion",
|
|
fn: function (aDomElement){
|
|
fn: function (aDomElement){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-$recv(self._element())._insertBefore_reference_(aDomElement,self._reference());
|
|
|
|
|
|
+$recv($self._element())._insertBefore_reference_(aDomElement,$self._reference());
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"nextPutDomNode:",{aDomElement:aDomElement},$globals.Domite)});
|
|
}, function($ctx1) {$ctx1.fill(self,"nextPutDomNode:",{aDomElement:aDomElement},$globals.Domite)});
|
|
@@ -611,16 +611,16 @@ $core.method({
|
|
selector: "nextPutJSObject:",
|
|
selector: "nextPutJSObject:",
|
|
protocol: "insertion",
|
|
protocol: "insertion",
|
|
fn: function (aJSObject){
|
|
fn: function (aJSObject){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
var $1;
|
|
var $1;
|
|
$1=$recv($globals.PlatformDom)._isDomNode_(aJSObject);
|
|
$1=$recv($globals.PlatformDom)._isDomNode_(aJSObject);
|
|
if($core.assert($1)){
|
|
if($core.assert($1)){
|
|
-self._nextPutDomNode_(aJSObject);
|
|
|
|
|
|
+$self._nextPutDomNode_(aJSObject);
|
|
} else {
|
|
} else {
|
|
-self._nextPut_(aJSObject);
|
|
|
|
|
|
+$self._nextPut_(aJSObject);
|
|
}
|
|
}
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -641,11 +641,11 @@ $core.method({
|
|
selector: "nextPutString:",
|
|
selector: "nextPutString:",
|
|
protocol: "insertion",
|
|
protocol: "insertion",
|
|
fn: function (aString){
|
|
fn: function (aString){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-self._nextPutDomNode_($recv($recv(aString)._asString())._asDomNode());
|
|
|
|
|
|
+$self._nextPutDomNode_($recv($recv(aString)._asString())._asDomNode());
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"nextPutString:",{aString:aString},$globals.Domite)});
|
|
}, function($ctx1) {$ctx1.fill(self,"nextPutString:",{aString:aString},$globals.Domite)});
|
|
@@ -665,11 +665,11 @@ $core.method({
|
|
selector: "off:unbind:",
|
|
selector: "off:unbind:",
|
|
protocol: "events",
|
|
protocol: "events",
|
|
fn: function (aString,aBlock){
|
|
fn: function (aString,aBlock){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-$recv(self._asDomNode())._removeEventListener_block_useCapture_(aString,aBlock,false);
|
|
|
|
|
|
+$recv($self._asDomNode())._removeEventListener_block_useCapture_(aString,aBlock,false);
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"off:unbind:",{aString:aString,aBlock:aBlock},$globals.Domite)});
|
|
}, function($ctx1) {$ctx1.fill(self,"off:unbind:",{aString:aString,aBlock:aBlock},$globals.Domite)});
|
|
@@ -689,11 +689,11 @@ $core.method({
|
|
selector: "on:bind:",
|
|
selector: "on:bind:",
|
|
protocol: "events",
|
|
protocol: "events",
|
|
fn: function (aString,aBlock){
|
|
fn: function (aString,aBlock){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-$recv(self._asDomNode())._addEventListener_block_useCapture_(aString,aBlock,false);
|
|
|
|
|
|
+$recv($self._asDomNode())._addEventListener_block_useCapture_(aString,aBlock,false);
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"on:bind:",{aString:aString,aBlock:aBlock},$globals.Domite)});
|
|
}, function($ctx1) {$ctx1.fill(self,"on:bind:",{aString:aString,aBlock:aBlock},$globals.Domite)});
|
|
@@ -713,18 +713,18 @@ $core.method({
|
|
selector: "peek",
|
|
selector: "peek",
|
|
protocol: "reading",
|
|
protocol: "reading",
|
|
fn: function (){
|
|
fn: function (){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
var $1,$receiver;
|
|
var $1,$receiver;
|
|
-$1=self._reference();
|
|
|
|
|
|
+$1=$self._reference();
|
|
if(($receiver = $1) == null || $receiver.a$nil){
|
|
if(($receiver = $1) == null || $receiver.a$nil){
|
|
return $1;
|
|
return $1;
|
|
} else {
|
|
} else {
|
|
var ref;
|
|
var ref;
|
|
ref=$receiver;
|
|
ref=$receiver;
|
|
-return $recv(self._class())._fromElement_(ref);
|
|
|
|
|
|
+return $recv($self._class())._fromElement_(ref);
|
|
}
|
|
}
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"peek",{},$globals.Domite)});
|
|
}, function($ctx1) {$ctx1.fill(self,"peek",{},$globals.Domite)});
|
|
@@ -744,12 +744,12 @@ $core.method({
|
|
selector: "prev",
|
|
selector: "prev",
|
|
protocol: "reading",
|
|
protocol: "reading",
|
|
fn: function (){
|
|
fn: function (){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-self._deprecatedAPI_("Use #back instead.");
|
|
|
|
-return self._back();
|
|
|
|
|
|
+$self._deprecatedAPI_("Use #back instead.");
|
|
|
|
+return $self._back();
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"prev",{},$globals.Domite)});
|
|
}, function($ctx1) {$ctx1.fill(self,"prev",{},$globals.Domite)});
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
@@ -768,11 +768,11 @@ $core.method({
|
|
selector: "propAt:",
|
|
selector: "propAt:",
|
|
protocol: "accessing",
|
|
protocol: "accessing",
|
|
fn: function (aString){
|
|
fn: function (aString){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-return $recv(self["@element"])._at_(aString);
|
|
|
|
|
|
+return $recv($self["@element"])._at_(aString);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"propAt:",{aString:aString},$globals.Domite)});
|
|
}, function($ctx1) {$ctx1.fill(self,"propAt:",{aString:aString},$globals.Domite)});
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
@@ -791,11 +791,11 @@ $core.method({
|
|
selector: "propAt:put:",
|
|
selector: "propAt:put:",
|
|
protocol: "accessing",
|
|
protocol: "accessing",
|
|
fn: function (aString,anObject){
|
|
fn: function (aString,anObject){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-return $recv(self["@element"])._at_put_(aString,anObject);
|
|
|
|
|
|
+return $recv($self["@element"])._at_put_(aString,anObject);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"propAt:put:",{aString:aString,anObject:anObject},$globals.Domite)});
|
|
}, function($ctx1) {$ctx1.fill(self,"propAt:put:",{aString:aString,anObject:anObject},$globals.Domite)});
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
@@ -814,11 +814,11 @@ $core.method({
|
|
selector: "putOn:",
|
|
selector: "putOn:",
|
|
protocol: "streaming",
|
|
protocol: "streaming",
|
|
fn: function (aStream){
|
|
fn: function (aStream){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-$recv(aStream)._nextPutDomNode_(self._asDomNode());
|
|
|
|
|
|
+$recv(aStream)._nextPutDomNode_($self._asDomNode());
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"putOn:",{aStream:aStream},$globals.Domite)});
|
|
}, function($ctx1) {$ctx1.fill(self,"putOn:",{aStream:aStream},$globals.Domite)});
|
|
@@ -838,8 +838,8 @@ $core.method({
|
|
selector: "reference",
|
|
selector: "reference",
|
|
protocol: "accessing",
|
|
protocol: "accessing",
|
|
fn: function (){
|
|
fn: function (){
|
|
-var self=this;
|
|
|
|
-return self["@reference"];
|
|
|
|
|
|
+var self=this,$self=this;
|
|
|
|
+return $self["@reference"];
|
|
|
|
|
|
},
|
|
},
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
@@ -856,8 +856,8 @@ $core.method({
|
|
selector: "reference:",
|
|
selector: "reference:",
|
|
protocol: "accessing",
|
|
protocol: "accessing",
|
|
fn: function (anObject){
|
|
fn: function (anObject){
|
|
-var self=this;
|
|
|
|
-self["@reference"]=anObject;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
|
|
+$self["@reference"]=anObject;
|
|
return self;
|
|
return self;
|
|
|
|
|
|
},
|
|
},
|
|
@@ -875,11 +875,11 @@ $core.method({
|
|
selector: "reset",
|
|
selector: "reset",
|
|
protocol: "positioning",
|
|
protocol: "positioning",
|
|
fn: function (){
|
|
fn: function (){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-self._reference_($recv(self._element())._firstChild());
|
|
|
|
|
|
+$self._reference_($recv($self._element())._firstChild());
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"reset",{},$globals.Domite)});
|
|
}, function($ctx1) {$ctx1.fill(self,"reset",{},$globals.Domite)});
|
|
@@ -899,14 +899,14 @@ $core.method({
|
|
selector: "resetContents",
|
|
selector: "resetContents",
|
|
protocol: "deletion",
|
|
protocol: "deletion",
|
|
fn: function (){
|
|
fn: function (){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
|
|
|
|
- var element = self["@element"], child;
|
|
|
|
|
|
+ var element = $self["@element"], child;
|
|
while (child = element.firstChild) element.removeChild(child);
|
|
while (child = element.firstChild) element.removeChild(child);
|
|
- self["@reference"] = null;;
|
|
|
|
|
|
+ $self["@reference"] = null;;
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"resetContents",{},$globals.Domite)});
|
|
}, function($ctx1) {$ctx1.fill(self,"resetContents",{},$globals.Domite)});
|
|
@@ -914,7 +914,7 @@ return self;
|
|
},
|
|
},
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
args: [],
|
|
args: [],
|
|
-source: "resetContents\x0a<inlineJS: '\x0a\x09var element = self[\x22@element\x22], child;\x0a\x09while (child = element.firstChild) element.removeChild(child);\x0a\x09self[\x22@reference\x22] = null;\x0a'>",
|
|
|
|
|
|
+source: "resetContents\x0a<inlineJS: '\x0a\x09var element = $self[\x22@element\x22], child;\x0a\x09while (child = element.firstChild) element.removeChild(child);\x0a\x09$self[\x22@reference\x22] = null;\x0a'>",
|
|
referencedClasses: [],
|
|
referencedClasses: [],
|
|
//>>excludeEnd("ide");
|
|
//>>excludeEnd("ide");
|
|
messageSends: []
|
|
messageSends: []
|
|
@@ -926,18 +926,18 @@ $core.method({
|
|
selector: "setToAfter",
|
|
selector: "setToAfter",
|
|
protocol: "positioning",
|
|
protocol: "positioning",
|
|
fn: function (){
|
|
fn: function (){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
var $2,$1;
|
|
var $2,$1;
|
|
-$2=self._element();
|
|
|
|
|
|
+$2=$self._element();
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
$ctx1.sendIdx["element"]=1;
|
|
$ctx1.sendIdx["element"]=1;
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
$1=$recv($2)._nextSibling();
|
|
$1=$recv($2)._nextSibling();
|
|
-self._reference_($1);
|
|
|
|
-self._element_($recv(self._element())._parentNode());
|
|
|
|
|
|
+$self._reference_($1);
|
|
|
|
+$self._element_($recv($self._element())._parentNode());
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"setToAfter",{},$globals.Domite)});
|
|
}, function($ctx1) {$ctx1.fill(self,"setToAfter",{},$globals.Domite)});
|
|
@@ -957,22 +957,22 @@ $core.method({
|
|
selector: "setToBack",
|
|
selector: "setToBack",
|
|
protocol: "positioning",
|
|
protocol: "positioning",
|
|
fn: function (){
|
|
fn: function (){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
var $1,$3,$2,$receiver;
|
|
var $1,$3,$2,$receiver;
|
|
-$1=self._atStart();
|
|
|
|
|
|
+$1=$self._atStart();
|
|
if(!$core.assert($1)){
|
|
if(!$core.assert($1)){
|
|
-$3=self._reference();
|
|
|
|
|
|
+$3=$self._reference();
|
|
if(($receiver = $3) == null || $receiver.a$nil){
|
|
if(($receiver = $3) == null || $receiver.a$nil){
|
|
-$2=$recv(self._element())._lastChild();
|
|
|
|
|
|
+$2=$recv($self._element())._lastChild();
|
|
} else {
|
|
} else {
|
|
var ref;
|
|
var ref;
|
|
ref=$receiver;
|
|
ref=$receiver;
|
|
$2=$recv(ref)._previousSibling();
|
|
$2=$recv(ref)._previousSibling();
|
|
}
|
|
}
|
|
-self._reference_($2);
|
|
|
|
|
|
+$self._reference_($2);
|
|
}
|
|
}
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -993,17 +993,17 @@ $core.method({
|
|
selector: "setToBefore",
|
|
selector: "setToBefore",
|
|
protocol: "positioning",
|
|
protocol: "positioning",
|
|
fn: function (){
|
|
fn: function (){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
var $1;
|
|
var $1;
|
|
-$1=self._element();
|
|
|
|
|
|
+$1=$self._element();
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
$ctx1.sendIdx["element"]=1;
|
|
$ctx1.sendIdx["element"]=1;
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-self._reference_($1);
|
|
|
|
-self._element_($recv(self._element())._parentNode());
|
|
|
|
|
|
+$self._reference_($1);
|
|
|
|
+$self._element_($recv($self._element())._parentNode());
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"setToBefore",{},$globals.Domite)});
|
|
}, function($ctx1) {$ctx1.fill(self,"setToBefore",{},$globals.Domite)});
|
|
@@ -1023,11 +1023,11 @@ $core.method({
|
|
selector: "setToEnd",
|
|
selector: "setToEnd",
|
|
protocol: "positioning",
|
|
protocol: "positioning",
|
|
fn: function (){
|
|
fn: function (){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-self._reference_(nil._asJavaScriptObject());
|
|
|
|
|
|
+$self._reference_(nil._asJavaScriptObject());
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"setToEnd",{},$globals.Domite)});
|
|
}, function($ctx1) {$ctx1.fill(self,"setToEnd",{},$globals.Domite)});
|
|
@@ -1047,14 +1047,14 @@ $core.method({
|
|
selector: "setToNext",
|
|
selector: "setToNext",
|
|
protocol: "positioning",
|
|
protocol: "positioning",
|
|
fn: function (){
|
|
fn: function (){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
var $1;
|
|
var $1;
|
|
-$1=self._atEnd();
|
|
|
|
|
|
+$1=$self._atEnd();
|
|
if(!$core.assert($1)){
|
|
if(!$core.assert($1)){
|
|
-self._reference_($recv(self._reference())._nextSibling());
|
|
|
|
|
|
+$self._reference_($recv($self._reference())._nextSibling());
|
|
}
|
|
}
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -1075,12 +1075,12 @@ $core.method({
|
|
selector: "setToPrev",
|
|
selector: "setToPrev",
|
|
protocol: "positioning",
|
|
protocol: "positioning",
|
|
fn: function (){
|
|
fn: function (){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-self._deprecatedAPI_("Use #setToBack instead");
|
|
|
|
-return self._setToBack();
|
|
|
|
|
|
+$self._deprecatedAPI_("Use #setToBack instead");
|
|
|
|
+return $self._setToBack();
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"setToPrev",{},$globals.Domite)});
|
|
}, function($ctx1) {$ctx1.fill(self,"setToPrev",{},$globals.Domite)});
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
@@ -1100,11 +1100,11 @@ $core.method({
|
|
selector: "allAt:",
|
|
selector: "allAt:",
|
|
protocol: "instance creation",
|
|
protocol: "instance creation",
|
|
fn: function (aString){
|
|
fn: function (aString){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-return self._wrap_($recv($globals.PlatformDom)._toArray_($recv(document)._querySelectorAll_(aString)));
|
|
|
|
|
|
+return $self._wrap_($recv($globals.PlatformDom)._toArray_($recv(document)._querySelectorAll_(aString)));
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"allAt:",{aString:aString},$globals.Domite.a$cls)});
|
|
}, function($ctx1) {$ctx1.fill(self,"allAt:",{aString:aString},$globals.Domite.a$cls)});
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
@@ -1123,11 +1123,11 @@ $core.method({
|
|
selector: "at:",
|
|
selector: "at:",
|
|
protocol: "instance creation",
|
|
protocol: "instance creation",
|
|
fn: function (aString){
|
|
fn: function (aString){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-return self._fromElement_($recv(document)._querySelector_(aString));
|
|
|
|
|
|
+return $self._fromElement_($recv(document)._querySelector_(aString));
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"at:",{aString:aString},$globals.Domite.a$cls)});
|
|
}, function($ctx1) {$ctx1.fill(self,"at:",{aString:aString},$globals.Domite.a$cls)});
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
@@ -1146,7 +1146,7 @@ $core.method({
|
|
selector: "fromElement:",
|
|
selector: "fromElement:",
|
|
protocol: "instance creation",
|
|
protocol: "instance creation",
|
|
fn: function (aDomElement){
|
|
fn: function (aDomElement){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
@@ -1156,10 +1156,10 @@ aDomElement;
|
|
} else {
|
|
} else {
|
|
$1=$recv($globals.PlatformDom)._isDomNode_(aDomElement);
|
|
$1=$recv($globals.PlatformDom)._isDomNode_(aDomElement);
|
|
if(!$core.assert($1)){
|
|
if(!$core.assert($1)){
|
|
-self._error_($recv(self._name()).__comma(": Need a DOM node"));
|
|
|
|
|
|
+$self._error_($recv($self._name()).__comma(": Need a DOM node"));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-$2=self._new();
|
|
|
|
|
|
+$2=$self._new();
|
|
$recv($2)._element_(aDomElement);
|
|
$recv($2)._element_(aDomElement);
|
|
return $recv($2)._yourself();
|
|
return $recv($2)._yourself();
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -1180,12 +1180,12 @@ $core.method({
|
|
selector: "fromElement:cursorBefore:",
|
|
selector: "fromElement:cursorBefore:",
|
|
protocol: "instance creation",
|
|
protocol: "instance creation",
|
|
fn: function (aDomElement,anotherDomElement){
|
|
fn: function (aDomElement,anotherDomElement){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
var $1;
|
|
var $1;
|
|
-$1=self._fromElement_(aDomElement);
|
|
|
|
|
|
+$1=$self._fromElement_(aDomElement);
|
|
$recv($1)._reference_(anotherDomElement);
|
|
$recv($1)._reference_(anotherDomElement);
|
|
return $recv($1)._yourself();
|
|
return $recv($1)._yourself();
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -1206,11 +1206,11 @@ $core.method({
|
|
selector: "newElement:",
|
|
selector: "newElement:",
|
|
protocol: "instance creation",
|
|
protocol: "instance creation",
|
|
fn: function (aString){
|
|
fn: function (aString){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-return self._fromElement_($recv(document)._createElement_(aString));
|
|
|
|
|
|
+return $self._fromElement_($recv(document)._createElement_(aString));
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"newElement:",{aString:aString},$globals.Domite.a$cls)});
|
|
}, function($ctx1) {$ctx1.fill(self,"newElement:",{aString:aString},$globals.Domite.a$cls)});
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
@@ -1229,11 +1229,11 @@ $core.method({
|
|
selector: "newElement:xmlns:",
|
|
selector: "newElement:xmlns:",
|
|
protocol: "instance creation",
|
|
protocol: "instance creation",
|
|
fn: function (aString,anotherString){
|
|
fn: function (aString,anotherString){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-return self._fromElement_($recv(document)._createElementNS_tagName_(anotherString,aString));
|
|
|
|
|
|
+return $self._fromElement_($recv(document)._createElementNS_tagName_(anotherString,aString));
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"newElement:xmlns:",{aString:aString,anotherString:anotherString},$globals.Domite.a$cls)});
|
|
}, function($ctx1) {$ctx1.fill(self,"newElement:xmlns:",{aString:aString,anotherString:anotherString},$globals.Domite.a$cls)});
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
@@ -1252,11 +1252,11 @@ $core.method({
|
|
selector: "newStream",
|
|
selector: "newStream",
|
|
protocol: "instance creation",
|
|
protocol: "instance creation",
|
|
fn: function (){
|
|
fn: function (){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-return self._fromElement_([]._asDomNode());
|
|
|
|
|
|
+return $self._fromElement_([]._asDomNode());
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"newStream",{},$globals.Domite.a$cls)});
|
|
}, function($ctx1) {$ctx1.fill(self,"newStream",{},$globals.Domite.a$cls)});
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
@@ -1275,7 +1275,7 @@ $core.method({
|
|
selector: "wrap:",
|
|
selector: "wrap:",
|
|
protocol: "converting",
|
|
protocol: "converting",
|
|
fn: function (aCollection){
|
|
fn: function (aCollection){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
@@ -1283,7 +1283,7 @@ return $recv(aCollection)._collect_((function(each){
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx2) {
|
|
return $core.withContext(function($ctx2) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-return self._fromElement_(each);
|
|
|
|
|
|
+return $self._fromElement_(each);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,1)});
|
|
}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,1)});
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
@@ -1306,11 +1306,11 @@ $core.method({
|
|
selector: "nextPutDomNode:",
|
|
selector: "nextPutDomNode:",
|
|
protocol: "*DOMite",
|
|
protocol: "*DOMite",
|
|
fn: function (aNode){
|
|
fn: function (aNode){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-self._nextPut_(aNode);
|
|
|
|
|
|
+$self._nextPut_(aNode);
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"nextPutDomNode:",{aNode:aNode},$globals.ProtoStream)});
|
|
}, function($ctx1) {$ctx1.fill(self,"nextPutDomNode:",{aNode:aNode},$globals.ProtoStream)});
|