|
|
@@ -6,7 +6,10 @@
|
|
6
|
6
|
* Description:
|
|
7
|
7
|
* Converts a select box into a searchable and keyboard friendly interface. Fallbacks to native select on mobile and tablets
|
|
8
|
8
|
*/
|
|
9
|
|
-
|
|
|
9
|
+/*
|
|
|
10
|
+
|
|
|
11
|
+ * 第220行 zhangshuangnan 注释
|
|
|
12
|
+ * */
|
|
10
|
13
|
// Expose plugin as an AMD module if AMD loader is present:
|
|
11
|
14
|
(function (factory) {
|
|
12
|
15
|
'use strict';
|
|
|
@@ -165,7 +168,7 @@
|
|
165
|
168
|
var o = '', k = 0, p = '';
|
|
166
|
169
|
|
|
167
|
170
|
this.selectedIndex = this.$el.prop('selectedIndex')
|
|
168
|
|
-
|
|
|
171
|
+
|
|
169
|
172
|
this.$options.each(function(i, e){
|
|
170
|
173
|
|
|
171
|
174
|
if(e.nodeName.toLowerCase() == 'optgroup'){
|
|
|
@@ -217,7 +220,7 @@
|
|
217
|
220
|
|
|
218
|
221
|
/* Input: blur */
|
|
219
|
222
|
|
|
220
|
|
- this.$container.on('blur.input', 'input', $.proxy(this._blur, this))
|
|
|
223
|
+// this.$container.on('blur.input', 'input', $.proxy(this._blur, this))
|
|
221
|
224
|
|
|
222
|
225
|
/* Select: change */
|
|
223
|
226
|
|
|
|
@@ -545,7 +548,6 @@
|
|
545
|
548
|
return this._getAll()
|
|
546
|
549
|
.removeClass(this.settings.selectedClass)
|
|
547
|
550
|
.filter(function(){
|
|
548
|
|
-
|
|
549
|
551
|
return $(this).data('index') == selected
|
|
550
|
552
|
})
|
|
551
|
553
|
.addClass(this.settings.selectedClass)
|