r2786 - moved definition of _prevChar into _typeAhead method

r2786 - moved definition of _prevChar into _typeAhead method


Author: scottjehl
Date: Tue Jun 16 13:01:22 2009
New Revision: 2786
Modified:
branches/labs/selectmenu/ui.selectmenu.js
Log:
moved definition of _prevChar into _typeAhead method
Modified: branches/labs/selectmenu/ui.selectmenu.js
==============================================================================
--- branches/labs/selectmenu/ui.selectmenu.js    (original)
+++ branches/labs/selectmenu/ui.selectmenu.js    Tue Jun 16 13:01:22 2009
@@ -296,9 +296,10 @@
            .unbind('click');
    },
    _safemouseup: true,
-    _prevChar: ['',0],
    _typeAhead: function(code, eventType){
        var self = this;
+        //define self._prevChar if needed
+        if(!self._prevChar){ self._prevChar = ['',0]; }
        var C = String.fromCharCode(code);
        c = C.toLowerCase();
        var focusFound = false;