1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- Smalltalk createPackage: 'Wrappers-JQuery'!
- (Smalltalk packageAt: 'Wrappers-JQuery' ifAbsent: [ self error: 'Package not created: Wrappers-JQuery' ]) imports: {'jQuery' -> 'jquery'}!
- Object subclass: #JQuery
- instanceVariableNames: ''
- package: 'Wrappers-JQuery'!
- !JQuery class methodsFor: 'initialization'!
- current
- ^ jQuery
- !
- initialize
- "Allow JS method calls for the jQuery object.
- See boot.js DNU handling."
-
- Smalltalk optOut: jQuery
- ! !
- !BlockClosure methodsFor: '*Wrappers-JQuery'!
- asJQuery
- ^ {self} asJQuery
- !
- asJQueryInContext: aContext
- ^ {self} asJQueryInContext: aContext
- ! !
- !JSObjectProxy methodsFor: '*Wrappers-JQuery'!
- asJQuery
- <inlineJS: 'return jQuery($self[''@jsObject''])'>
- !
- asJQueryInContext: aContext
- <inlineJS: 'return jQuery($self[''@jsObject''], aContext)'>
- ! !
- !Object methodsFor: '*Wrappers-JQuery'!
- asJQuery
- <inlineJS: 'return jQuery(self)'>
- !
- asJQueryInContext: aContext
- <inlineJS: 'return jQuery(self, aContext)'>
- ! !
- !String methodsFor: '*Wrappers-JQuery'!
- asJQuery
- <inlineJS: 'return jQuery(String(self))'>
- !
- asJQueryInContext: aContext
- <inlineJS: 'return jQuery(String(self), aContext)'>
- ! !
|