r2787 - moved definition of _safemouseup into _init
Author: scottjehl
Date: Tue Jun 16 13:09:05 2009
New Revision: 2787
Modified:
branches/labs/selectmenu/ui.selectmenu.js
Log:
moved definition of _safemouseup into _init
Modified: branches/labs/selectmenu/ui.selectmenu.js
==============================================================================
--- branches/labs/selectmenu/ui.selectmenu.js (original)
+++ branches/labs/selectmenu/ui.selectmenu.js Tue Jun 16 13:09:05 2009
@@ -17,6 +17,9 @@
//quick array of button and menu id's
this.ids = this._genId();
+ //define safe mouseup for future toggling
+ this._safemouseup = true;
+
//create menu button wrapper
this.newelement = $('<a class="ui-selectmenu ui-widget ui-state-default
ui-corner-all" id="'+this.ids[0]+'" href="#" aria-haspopup="true"
aria-owns="'+this.ids[1]+'"></a>')
.insertAfter(this.element);
@@ -295,7 +298,6 @@
.attr('for',this.element.attr('id'))
.unbind('click');
},
- _safemouseup: true,
_typeAhead: function(code, eventType){
var self = this;
//define self._prevChar if needed