|
@@ -1,257 +0,0 @@
|
|
|
-define("amber/jquery/Wrappers-JQuery", ["amber/boot"
|
|
|
-
|
|
|
-, "jquery"
|
|
|
-
|
|
|
-, "amber_core/Kernel-Objects", "amber_core/Kernel-Methods", "amber_core/Kernel-Collections", "amber_core/Kernel-Infrastructure"], function($boot
|
|
|
-
|
|
|
-,jQuery
|
|
|
-
|
|
|
-){
|
|
|
-var $core=$boot.api,nil=$boot.nil,$recv=$boot.asReceiver,$globals=$boot.globals;
|
|
|
-$core.addPackage('Wrappers-JQuery');
|
|
|
-$core.packages["Wrappers-JQuery"].innerEval = function (expr) { return eval(expr); };
|
|
|
-$core.packages["Wrappers-JQuery"].imports = ["jQuery=jquery"];
|
|
|
-$core.packages["Wrappers-JQuery"].transport = {"type":"amd","amdNamespace":"amber/jquery"};
|
|
|
-
|
|
|
-$core.addClass('JQuery', $globals.Object, [], 'Wrappers-JQuery');
|
|
|
-
|
|
|
-$core.addMethod(
|
|
|
-$core.method({
|
|
|
-selector: "current",
|
|
|
-protocol: 'initialization',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-var $1;
|
|
|
-$1=jQuery;
|
|
|
-return $1;
|
|
|
-
|
|
|
-},
|
|
|
-
|
|
|
-args: [],
|
|
|
-source: "current\x0a\x09^ jQuery",
|
|
|
-referencedClasses: [],
|
|
|
-
|
|
|
-messageSends: []
|
|
|
-}),
|
|
|
-$globals.JQuery.klass);
|
|
|
-
|
|
|
-$core.addMethod(
|
|
|
-$core.method({
|
|
|
-selector: "initialize",
|
|
|
-protocol: 'initialization',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-function $Smalltalk(){return $globals.Smalltalk||(typeof Smalltalk=="undefined"?nil:Smalltalk)}
|
|
|
-
|
|
|
-return $core.withContext(function($ctx1) {
|
|
|
-
|
|
|
-$recv($Smalltalk())._optOut_(jQuery);
|
|
|
-return self;
|
|
|
-
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"initialize",{},$globals.JQuery.klass)});
|
|
|
-
|
|
|
-},
|
|
|
-
|
|
|
-args: [],
|
|
|
-source: "initialize\x0a\x09\x22Allow JS method calls for the jQuery object.\x0a\x09See boot.js DNU handling.\x22\x0a\x09\x0a\x09Smalltalk optOut: jQuery",
|
|
|
-referencedClasses: ["Smalltalk"],
|
|
|
-
|
|
|
-messageSends: ["optOut:"]
|
|
|
-}),
|
|
|
-$globals.JQuery.klass);
|
|
|
-
|
|
|
-$core.addMethod(
|
|
|
-$core.method({
|
|
|
-selector: "asJQuery",
|
|
|
-protocol: '*Wrappers-JQuery',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-
|
|
|
-return $core.withContext(function($ctx1) {
|
|
|
-
|
|
|
-var $1;
|
|
|
-$1=$recv([self])._asJQuery();
|
|
|
-return $1;
|
|
|
-
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"asJQuery",{},$globals.BlockClosure)});
|
|
|
-
|
|
|
-},
|
|
|
-
|
|
|
-args: [],
|
|
|
-source: "asJQuery\x0a\x09^ {self} asJQuery",
|
|
|
-referencedClasses: [],
|
|
|
-
|
|
|
-messageSends: ["asJQuery"]
|
|
|
-}),
|
|
|
-$globals.BlockClosure);
|
|
|
-
|
|
|
-$core.addMethod(
|
|
|
-$core.method({
|
|
|
-selector: "asJQueryInContext:",
|
|
|
-protocol: '*Wrappers-JQuery',
|
|
|
-fn: function (aContext){
|
|
|
-var self=this;
|
|
|
-
|
|
|
-return $core.withContext(function($ctx1) {
|
|
|
-
|
|
|
-var $1;
|
|
|
-$1=$recv([self])._asJQueryInContext_(aContext);
|
|
|
-return $1;
|
|
|
-
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"asJQueryInContext:",{aContext:aContext},$globals.BlockClosure)});
|
|
|
-
|
|
|
-},
|
|
|
-
|
|
|
-args: ["aContext"],
|
|
|
-source: "asJQueryInContext: aContext\x0a\x09^ {self} asJQueryInContext: aContext",
|
|
|
-referencedClasses: [],
|
|
|
-
|
|
|
-messageSends: ["asJQueryInContext:"]
|
|
|
-}),
|
|
|
-$globals.BlockClosure);
|
|
|
-
|
|
|
-$core.addMethod(
|
|
|
-$core.method({
|
|
|
-selector: "asJQuery",
|
|
|
-protocol: '*Wrappers-JQuery',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-
|
|
|
-return $core.withContext(function($ctx1) {
|
|
|
-
|
|
|
-return jQuery(self['@jsObject']);
|
|
|
-return self;
|
|
|
-
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"asJQuery",{},$globals.JSObjectProxy)});
|
|
|
-
|
|
|
-},
|
|
|
-
|
|
|
-args: [],
|
|
|
-source: "asJQuery\x0a\x09<return jQuery(self['@jsObject'])>",
|
|
|
-referencedClasses: [],
|
|
|
-
|
|
|
-messageSends: []
|
|
|
-}),
|
|
|
-$globals.JSObjectProxy);
|
|
|
-
|
|
|
-$core.addMethod(
|
|
|
-$core.method({
|
|
|
-selector: "asJQueryInContext:",
|
|
|
-protocol: '*Wrappers-JQuery',
|
|
|
-fn: function (aContext){
|
|
|
-var self=this;
|
|
|
-
|
|
|
-return $core.withContext(function($ctx1) {
|
|
|
-
|
|
|
-return jQuery(self['@jsObject'], aContext);
|
|
|
-return self;
|
|
|
-
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"asJQueryInContext:",{aContext:aContext},$globals.JSObjectProxy)});
|
|
|
-
|
|
|
-},
|
|
|
-
|
|
|
-args: ["aContext"],
|
|
|
-source: "asJQueryInContext: aContext\x0a\x09<return jQuery(self['@jsObject'], aContext)>",
|
|
|
-referencedClasses: [],
|
|
|
-
|
|
|
-messageSends: []
|
|
|
-}),
|
|
|
-$globals.JSObjectProxy);
|
|
|
-
|
|
|
-$core.addMethod(
|
|
|
-$core.method({
|
|
|
-selector: "asJQuery",
|
|
|
-protocol: '*Wrappers-JQuery',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-
|
|
|
-return $core.withContext(function($ctx1) {
|
|
|
-
|
|
|
-return jQuery(self);
|
|
|
-return self;
|
|
|
-
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"asJQuery",{},$globals.Object)});
|
|
|
-
|
|
|
-},
|
|
|
-
|
|
|
-args: [],
|
|
|
-source: "asJQuery\x0a\x09<return jQuery(self)>",
|
|
|
-referencedClasses: [],
|
|
|
-
|
|
|
-messageSends: []
|
|
|
-}),
|
|
|
-$globals.Object);
|
|
|
-
|
|
|
-$core.addMethod(
|
|
|
-$core.method({
|
|
|
-selector: "asJQueryInContext:",
|
|
|
-protocol: '*Wrappers-JQuery',
|
|
|
-fn: function (aContext){
|
|
|
-var self=this;
|
|
|
-
|
|
|
-return $core.withContext(function($ctx1) {
|
|
|
-
|
|
|
-return jQuery(self, aContext);
|
|
|
-return self;
|
|
|
-
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"asJQueryInContext:",{aContext:aContext},$globals.Object)});
|
|
|
-
|
|
|
-},
|
|
|
-
|
|
|
-args: ["aContext"],
|
|
|
-source: "asJQueryInContext: aContext\x0a\x09<return jQuery(self, aContext)>",
|
|
|
-referencedClasses: [],
|
|
|
-
|
|
|
-messageSends: []
|
|
|
-}),
|
|
|
-$globals.Object);
|
|
|
-
|
|
|
-$core.addMethod(
|
|
|
-$core.method({
|
|
|
-selector: "asJQuery",
|
|
|
-protocol: '*Wrappers-JQuery',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-
|
|
|
-return $core.withContext(function($ctx1) {
|
|
|
-
|
|
|
-return jQuery(String(self));
|
|
|
-return self;
|
|
|
-
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"asJQuery",{},$globals.String)});
|
|
|
-
|
|
|
-},
|
|
|
-
|
|
|
-args: [],
|
|
|
-source: "asJQuery\x0a\x09<return jQuery(String(self))>",
|
|
|
-referencedClasses: [],
|
|
|
-
|
|
|
-messageSends: []
|
|
|
-}),
|
|
|
-$globals.String);
|
|
|
-
|
|
|
-$core.addMethod(
|
|
|
-$core.method({
|
|
|
-selector: "asJQueryInContext:",
|
|
|
-protocol: '*Wrappers-JQuery',
|
|
|
-fn: function (aContext){
|
|
|
-var self=this;
|
|
|
-
|
|
|
-return $core.withContext(function($ctx1) {
|
|
|
-
|
|
|
-return jQuery(String(self), aContext);
|
|
|
-return self;
|
|
|
-
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"asJQueryInContext:",{aContext:aContext},$globals.String)});
|
|
|
-
|
|
|
-},
|
|
|
-
|
|
|
-args: ["aContext"],
|
|
|
-source: "asJQueryInContext: aContext\x0a\x09<return jQuery(String(self), aContext)>",
|
|
|
-referencedClasses: [],
|
|
|
-
|
|
|
-messageSends: []
|
|
|
-}),
|
|
|
-$globals.String);
|
|
|
-
|
|
|
-});
|