File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -210,6 +210,26 @@ $.Widget.prototype = {
210
210
// TODO figure out which element to bind to: this.element, if none specified
211
211
// TODO append widget namespace to all event names
212
212
// TODO set the scope of the callback to the instance (this here)
213
+ // TODO extend destroy to unbind all events to elements other then this.element
214
+
215
+ // usage: bind to this.element
216
+ this . _bind ( {
217
+ mouseover : function ( event ) {
218
+ this . show ( event . currentTarget )
219
+ } ,
220
+ mouseout : function ( event ) {
221
+ this . hide ( event . currentTarget ) ;
222
+ }
223
+ } ) ;
224
+ // usage: bind to a specified element
225
+ this . _bind ( this . element . find ( ".headers" ) , {
226
+ mouseover : function ( event ) {
227
+ this . show ( event . currentTarget )
228
+ } ,
229
+ mouseout : function ( event ) {
230
+ this . hide ( event . currentTarget ) ;
231
+ }
232
+ } ) ;
213
233
} ,
214
234
215
235
_trigger : function ( type , event , data ) {
You can’t perform that action at this time.
0 commit comments