$.ui.mouse = {\r
mouseInit: function() {\r
var self = this;\r
- \r
- this.element.bind('mousedown.mouse', function(e) {\r
+ \r
+ this.element.bind('mousedown.'+this.widgetName, function(e) {\r
return self.mouseDown(e);\r
});\r
\r
// TODO: make sure destroying one instance of mouse doesn't mess with\r
// other instances of mouse\r
mouseDestroy: function() {\r
- this.element.unbind('.mouse');\r
+ this.element.unbind('.'+this.widgetName);\r
\r
// Restore text selection in IE\r
($.browser.msie\r
return self.mouseUp(e);\r
};\r
$(document)\r
- .bind('mousemove.mouse', this._mouseMoveDelegate)\r
- .bind('mouseup.mouse', this._mouseUpDelegate);\r
+ .bind('mousemove.'+this.widgetName, this._mouseMoveDelegate)\r
+ .bind('mouseup.'+this.widgetName, this._mouseUpDelegate);\r
\r
return false;\r
},\r
\r
mouseUp: function(e) {\r
$(document)\r
- .unbind('mousemove.mouse', this._mouseMoveDelegate)\r
- .unbind('mouseup.mouse', this._mouseUpDelegate);\r
+ .unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate)\r
+ .unbind('mouseup.'+this.widgetName, this._mouseUpDelegate);\r
\r
if (this._mouseStarted) {\r
this._mouseStarted = false;\r