|
@@ -1338,19 +1338,17 @@ 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");
|
|
-if($core.assert($recv($recv([$self._selectedClass()
|
|
|
|
|
|
+var $1;
|
|
|
|
+if($core.assert($recv([$self._selectedClass()
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
,$ctx1.sendIdx["selectedClass"]=1
|
|
,$ctx1.sendIdx["selectedClass"]=1
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-][0]).__eq(aClass))._and_((function(){
|
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
-return $core.withContext(function($ctx2) {
|
|
|
|
-//>>excludeEnd("ctx");
|
|
|
|
-return $recv(aClass)._isNil();
|
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
-}, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
|
|
|
|
-//>>excludeEnd("ctx");
|
|
|
|
-})))){
|
|
|
|
|
|
+][0]).__eq(aClass))){
|
|
|
|
+$1=$recv(aClass)._isNil();
|
|
|
|
+} else {
|
|
|
|
+$1=false;
|
|
|
|
+}
|
|
|
|
+if($core.assert($1)){
|
|
return self;
|
|
return self;
|
|
}
|
|
}
|
|
$self._withChangesDo_((function(){
|
|
$self._withChangesDo_((function(){
|
|
@@ -1440,6 +1438,7 @@ 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;
|
|
if($core.assert($recv($self.selectedSelector).__eq(aCompiledMethod))){
|
|
if($core.assert($recv($self.selectedSelector).__eq(aCompiledMethod))){
|
|
return self;
|
|
return self;
|
|
}
|
|
}
|
|
@@ -1452,15 +1451,12 @@ $self.selectedSelector=nil;
|
|
$self.selectedSelector;
|
|
$self.selectedSelector;
|
|
} else {
|
|
} else {
|
|
$self.selectedSelector=$recv(aCompiledMethod)._selector();
|
|
$self.selectedSelector=$recv(aCompiledMethod)._selector();
|
|
-if(!$core.assert($recv($recv($self.selectedClass)._notNil())._and_((function(){
|
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
-return $core.withContext(function($ctx3) {
|
|
|
|
-//>>excludeEnd("ctx");
|
|
|
|
-return $recv($recv($self.selectedClass)._methodDictionary())._includesKey_($self.selectedSelector);
|
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
-}, function($ctx3) {$ctx3.fillBlock({},$ctx2,5)});
|
|
|
|
-//>>excludeEnd("ctx");
|
|
|
|
-})))){
|
|
|
|
|
|
+if($core.assert($recv($self.selectedClass)._notNil())){
|
|
|
|
+$1=$recv($recv($self.selectedClass)._methodDictionary())._includesKey_($self.selectedSelector);
|
|
|
|
+} else {
|
|
|
|
+$1=false;
|
|
|
|
+}
|
|
|
|
+if(!$core.assert($1)){
|
|
$self.selectedClass=$recv(aCompiledMethod)._methodClass();
|
|
$self.selectedClass=$recv(aCompiledMethod)._methodClass();
|
|
$self.selectedPackage=$recv($recv($self.selectedClass)._theNonMetaClass())._package();
|
|
$self.selectedPackage=$recv($recv($self.selectedClass)._theNonMetaClass())._package();
|
|
$self.selectedPackage;
|
|
$self.selectedPackage;
|
|
@@ -1604,15 +1600,11 @@ 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._selectedClass())._isNil())._or_((function(){
|
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
-return $core.withContext(function($ctx2) {
|
|
|
|
-//>>excludeEnd("ctx");
|
|
|
|
|
|
+if($core.assert($recv($self._selectedClass())._isNil())){
|
|
|
|
+return true;
|
|
|
|
+} else {
|
|
return $recv(aString)._match_("^\x5cs*[A-Z]");
|
|
return $recv(aString)._match_("^\x5cs*[A-Z]");
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
-}, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
|
|
|
|
-//>>excludeEnd("ctx");
|
|
|
|
-}));
|
|
|
|
|
|
+}
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"shouldCompileDefinition:",{aString:aString})});
|
|
}, function($ctx1) {$ctx1.fill(self,"shouldCompileDefinition:",{aString:aString})});
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
@@ -2703,19 +2695,15 @@ 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._wrapper()
|
|
|
|
|
|
+if($core.assert($recv([$self._wrapper()
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
,$ctx1.sendIdx["wrapper"]=1
|
|
,$ctx1.sendIdx["wrapper"]=1
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-][0])._notNil())._and_((function(){
|
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
-return $core.withContext(function($ctx2) {
|
|
|
|
-//>>excludeEnd("ctx");
|
|
|
|
|
|
+][0])._notNil())){
|
|
return $recv($recv($self._wrapper())._asJQuery())._hasClass_($self._focusClass());
|
|
return $recv($recv($self._wrapper())._asJQuery())._hasClass_($self._focusClass());
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
-}, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
|
|
|
|
-//>>excludeEnd("ctx");
|
|
|
|
-}));
|
|
|
|
|
|
+} else {
|
|
|
|
+return false;
|
|
|
|
+}
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"hasFocus",{})});
|
|
}, function($ctx1) {$ctx1.fill(self,"hasFocus",{})});
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
@@ -4208,27 +4196,15 @@ return $recv(each)._for_($self._model());
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx2) {
|
|
return $core.withContext(function($ctx2) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-return [$recv($recv($recv(each)._category()).__eq($self._commandCategory()))._and_((function(){
|
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
-return $core.withContext(function($ctx3) {
|
|
|
|
-//>>excludeEnd("ctx");
|
|
|
|
-return $recv($recv(each)._isAction())._and_((function(){
|
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
-return $core.withContext(function($ctx4) {
|
|
|
|
-//>>excludeEnd("ctx");
|
|
|
|
|
|
+if($core.assert($recv($recv(each)._category()).__eq($self._commandCategory()))){
|
|
|
|
+if($core.assert($recv(each)._isAction())){
|
|
return $recv(each)._isActive();
|
|
return $recv(each)._isActive();
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
-}, function($ctx4) {$ctx4.fillBlock({},$ctx3,5)});
|
|
|
|
-//>>excludeEnd("ctx");
|
|
|
|
-}));
|
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
-}, function($ctx3) {$ctx3.fillBlock({},$ctx2,4)});
|
|
|
|
-//>>excludeEnd("ctx");
|
|
|
|
-}))
|
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
-,$ctx2.sendIdx["and:"]=1
|
|
|
|
-//>>excludeEnd("ctx");
|
|
|
|
-][0];
|
|
|
|
|
|
+} else {
|
|
|
|
+return false;
|
|
|
|
+}
|
|
|
|
+} else {
|
|
|
|
+return false;
|
|
|
|
+}
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,3)});
|
|
}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,3)});
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
@@ -10039,35 +10015,29 @@ 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;
|
|
$recv("body"._asJQuery())._keydown_((function(event){
|
|
$recv("body"._asJQuery())._keydown_((function(event){
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx2) {
|
|
return $core.withContext(function($ctx2) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-if($core.assert([$recv([$recv(event)._ctrlKey()
|
|
|
|
|
|
+if($core.assert([$recv(event)._ctrlKey()
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
,$ctx2.sendIdx["ctrlKey"]=1
|
|
,$ctx2.sendIdx["ctrlKey"]=1
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-][0])._and_((function(){
|
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
-return $core.withContext(function($ctx3) {
|
|
|
|
-//>>excludeEnd("ctx");
|
|
|
|
-return [$recv([$recv(event)._which()
|
|
|
|
|
|
+][0])){
|
|
|
|
+$1=[$recv([$recv(event)._which()
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
-,$ctx3.sendIdx["which"]=1
|
|
|
|
|
|
+,$ctx2.sendIdx["which"]=1
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
][0]).__eq((188))
|
|
][0]).__eq((188))
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
-,$ctx3.sendIdx["="]=1
|
|
|
|
|
|
+,$ctx2.sendIdx["="]=1
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
][0];
|
|
][0];
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
-}, function($ctx3) {$ctx3.fillBlock({},$ctx2,2)});
|
|
|
|
-//>>excludeEnd("ctx");
|
|
|
|
-}))
|
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
-,$ctx2.sendIdx["and:"]=1
|
|
|
|
-//>>excludeEnd("ctx");
|
|
|
|
-][0])){
|
|
|
|
|
|
+} else {
|
|
|
|
+$1=false;
|
|
|
|
+}
|
|
|
|
+if($core.assert($1)){
|
|
$self._activatePreviousTab();
|
|
$self._activatePreviousTab();
|
|
[$recv(event)._preventDefault()
|
|
[$recv(event)._preventDefault()
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -10075,15 +10045,12 @@ $self._activatePreviousTab();
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
][0];
|
|
][0];
|
|
}
|
|
}
|
|
-if($core.assert($recv($recv(event)._ctrlKey())._and_((function(){
|
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
-return $core.withContext(function($ctx3) {
|
|
|
|
-//>>excludeEnd("ctx");
|
|
|
|
-return $recv($recv(event)._which()).__eq((190));
|
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
-}, function($ctx3) {$ctx3.fillBlock({},$ctx2,4)});
|
|
|
|
-//>>excludeEnd("ctx");
|
|
|
|
-})))){
|
|
|
|
|
|
+if($core.assert($recv(event)._ctrlKey())){
|
|
|
|
+$2=$recv($recv(event)._which()).__eq((190));
|
|
|
|
+} else {
|
|
|
|
+$2=false;
|
|
|
|
+}
|
|
|
|
+if($core.assert($2)){
|
|
$self._activateNextTab();
|
|
$self._activateNextTab();
|
|
return $recv(event)._preventDefault();
|
|
return $recv(event)._preventDefault();
|
|
}
|
|
}
|