|
@@ -24,15 +24,15 @@ $core.method({
|
|
selector: "initializeFromJQuery:",
|
|
selector: "initializeFromJQuery:",
|
|
protocol: "initialization",
|
|
protocol: "initialization",
|
|
fn: function (aJQuery){
|
|
fn: function (aJQuery){
|
|
-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._snippetsFromJQuery_(aJQuery))._do_((function(each){
|
|
|
|
|
|
+$recv($self._snippetsFromJQuery_(aJQuery))._do_((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._installSnippetFromJQuery_($recv(each)._asJQuery());
|
|
|
|
|
|
+return $self._installSnippetFromJQuery_($recv(each)._asJQuery());
|
|
//>>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");
|
|
@@ -56,7 +56,7 @@ $core.method({
|
|
selector: "installSnippetFromJQuery:",
|
|
selector: "installSnippetFromJQuery:",
|
|
protocol: "snippet installation",
|
|
protocol: "snippet installation",
|
|
fn: function (element){
|
|
fn: function (element){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
var name;
|
|
var name;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
@@ -73,7 +73,7 @@ $recv(element)._attr_put_("data-snippet","*");
|
|
} else {
|
|
} else {
|
|
$recv(element)._removeAttr_("data-snippet");
|
|
$recv(element)._removeAttr_("data-snippet");
|
|
}
|
|
}
|
|
-self._snippetAt_install_(name,$recv($recv(element)._detach())._get_((0)));
|
|
|
|
|
|
+$self._snippetAt_install_(name,$recv($recv(element)._detach())._get_((0)));
|
|
}
|
|
}
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -94,11 +94,11 @@ $core.method({
|
|
selector: "snippetAt:",
|
|
selector: "snippetAt:",
|
|
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._snippets())._at_(aString);
|
|
|
|
|
|
+return $recv($self._snippets())._at_(aString);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"snippetAt:",{aString:aString},$globals.HTMLSnippet)});
|
|
}, function($ctx1) {$ctx1.fill(self,"snippetAt:",{aString:aString},$globals.HTMLSnippet)});
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
@@ -117,7 +117,7 @@ $core.method({
|
|
selector: "snippetAt:compile:",
|
|
selector: "snippetAt:compile:",
|
|
protocol: "method generation",
|
|
protocol: "method generation",
|
|
fn: function (aString,anElement){
|
|
fn: function (aString,anElement){
|
|
-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");
|
|
@@ -149,12 +149,12 @@ $core.method({
|
|
selector: "snippetAt:install:",
|
|
selector: "snippetAt:install:",
|
|
protocol: "snippet installation",
|
|
protocol: "snippet installation",
|
|
fn: function (aString,anElement){
|
|
fn: function (aString,anElement){
|
|
-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._snippets())._at_put_(aString,anElement);
|
|
|
|
-self._snippetAt_compile_(aString,anElement);
|
|
|
|
|
|
+$recv($self._snippets())._at_put_(aString,anElement);
|
|
|
|
+$self._snippetAt_compile_(aString,anElement);
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"snippetAt:install:",{aString:aString,anElement:anElement},$globals.HTMLSnippet)});
|
|
}, function($ctx1) {$ctx1.fill(self,"snippetAt:install:",{aString:aString,anElement:anElement},$globals.HTMLSnippet)});
|
|
@@ -174,15 +174,15 @@ $core.method({
|
|
selector: "snippets",
|
|
selector: "snippets",
|
|
protocol: "accessing",
|
|
protocol: "accessing",
|
|
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["@snippets"];
|
|
|
|
|
|
+$1=$self["@snippets"];
|
|
if(($receiver = $1) == null || $receiver.a$nil){
|
|
if(($receiver = $1) == null || $receiver.a$nil){
|
|
-self["@snippets"]=$globals.HashedCollection._newFromPairs_([]);
|
|
|
|
-return self["@snippets"];
|
|
|
|
|
|
+$self["@snippets"]=$globals.HashedCollection._newFromPairs_([]);
|
|
|
|
+return $self["@snippets"];
|
|
} else {
|
|
} else {
|
|
return $1;
|
|
return $1;
|
|
}
|
|
}
|
|
@@ -204,7 +204,7 @@ $core.method({
|
|
selector: "snippetsFromJQuery:",
|
|
selector: "snippetsFromJQuery:",
|
|
protocol: "private",
|
|
protocol: "private",
|
|
fn: function (aJQuery){
|
|
fn: function (aJQuery){
|
|
-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");
|
|
@@ -229,8 +229,8 @@ $core.method({
|
|
selector: "current",
|
|
selector: "current",
|
|
protocol: "instance creation",
|
|
protocol: "instance creation",
|
|
fn: function (){
|
|
fn: function (){
|
|
-var self=this;
|
|
|
|
-return self["@current"];
|
|
|
|
|
|
+var self=this,$self=this;
|
|
|
|
+return $self["@current"];
|
|
|
|
|
|
},
|
|
},
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
@@ -247,24 +247,24 @@ $core.method({
|
|
selector: "ensureCurrent",
|
|
selector: "ensureCurrent",
|
|
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");
|
|
var $1,$2,$receiver;
|
|
var $1,$2,$receiver;
|
|
-$1=self["@current"];
|
|
|
|
|
|
+$1=$self["@current"];
|
|
if(($receiver = $1) == null || $receiver.a$nil){
|
|
if(($receiver = $1) == null || $receiver.a$nil){
|
|
$2=(
|
|
$2=(
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
$ctx1.supercall = true,
|
|
$ctx1.supercall = true,
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-($globals.HTMLSnippet.a$cls.superclass||$boot.nilAsClass).fn.prototype._new.apply($recv(self), []));
|
|
|
|
|
|
+($globals.HTMLSnippet.a$cls.superclass||$boot.nilAsClass).fn.prototype._new.apply($self, []));
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
$ctx1.supercall = false;
|
|
$ctx1.supercall = false;
|
|
//>>excludeEnd("ctx");;
|
|
//>>excludeEnd("ctx");;
|
|
$recv($2)._initializeFromJQuery_($recv(document)._asJQuery());
|
|
$recv($2)._initializeFromJQuery_($recv(document)._asJQuery());
|
|
-self["@current"]=$recv($2)._yourself();
|
|
|
|
-self["@current"];
|
|
|
|
|
|
+$self["@current"]=$recv($2)._yourself();
|
|
|
|
+$self["@current"];
|
|
} else {
|
|
} else {
|
|
$1;
|
|
$1;
|
|
}
|
|
}
|
|
@@ -287,7 +287,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");
|
|
@@ -296,13 +296,13 @@ var $1;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
$ctx1.supercall = true,
|
|
$ctx1.supercall = true,
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-($globals.HTMLSnippet.a$cls.superclass||$boot.nilAsClass).fn.prototype._initialize.apply($recv(self), []));
|
|
|
|
|
|
+($globals.HTMLSnippet.a$cls.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");;
|
|
$1=$recv($globals.PlatformDom)._isFeasible();
|
|
$1=$recv($globals.PlatformDom)._isFeasible();
|
|
if($core.assert($1)){
|
|
if($core.assert($1)){
|
|
-self._ensureCurrent();
|
|
|
|
|
|
+$self._ensureCurrent();
|
|
}
|
|
}
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -323,11 +323,11 @@ $core.method({
|
|
selector: "new",
|
|
selector: "new",
|
|
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");
|
|
-self._shouldNotImplement();
|
|
|
|
|
|
+$self._shouldNotImplement();
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"new",{},$globals.HTMLSnippet.a$cls)});
|
|
}, function($ctx1) {$ctx1.fill(self,"new",{},$globals.HTMLSnippet.a$cls)});
|
|
@@ -347,11 +347,11 @@ $core.method({
|
|
selector: "asSnippet",
|
|
selector: "asSnippet",
|
|
protocol: "*Web-Snippets",
|
|
protocol: "*Web-Snippets",
|
|
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($globals.HTMLSnippet)._current())._snippetAt_(self._asString());
|
|
|
|
|
|
+return $recv($recv($globals.HTMLSnippet)._current())._snippetAt_($self._asString());
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"asSnippet",{},$globals.CharacterArray)});
|
|
}, function($ctx1) {$ctx1.fill(self,"asSnippet",{},$globals.CharacterArray)});
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
@@ -370,7 +370,7 @@ $core.method({
|
|
selector: "snippet:",
|
|
selector: "snippet:",
|
|
protocol: "*Web-Snippets",
|
|
protocol: "*Web-Snippets",
|
|
fn: function (anElement){
|
|
fn: function (anElement){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
var clone,caret;
|
|
var clone,caret;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
@@ -381,7 +381,7 @@ $1=$recv($globals.TagBrush)._fromJQuery_canvas_(clone,self);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
$ctx1.sendIdx["fromJQuery:canvas:"]=1;
|
|
$ctx1.sendIdx["fromJQuery:canvas:"]=1;
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-self._with_($1);
|
|
|
|
|
|
+$self._with_($1);
|
|
caret=$recv(clone)._find_("[data-snippet=\x22*\x22]");
|
|
caret=$recv(clone)._find_("[data-snippet=\x22*\x22]");
|
|
$recv($recv(caret)._toArray())._ifEmpty_((function(){
|
|
$recv($recv(caret)._toArray())._ifEmpty_((function(){
|
|
caret=clone;
|
|
caret=clone;
|