mobile-select
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -19,3 +19,3 @@ /*! | ||
this.displayJson = []; | ||
this.curValue = null; | ||
this.curValue = []; | ||
this.curIndexArr = []; | ||
@@ -39,2 +39,6 @@ this.cascade = false; | ||
var _this = this; | ||
if(config.wheels[0].data.length==0){ | ||
console.error('mobileSelect has been successfully installed, but the data is empty and cannot be initialized.'); | ||
return false; | ||
} | ||
_this.keyMap = config.keyMap ? config.keyMap : {id:'id', value:'value', childs:'childs'}; | ||
@@ -57,2 +61,3 @@ _this.checkDataType(); | ||
_this.callback = config.callback || function(){}; | ||
_this.cancel = config.cancel || function(){}; | ||
_this.transitionEnd = config.transitionEnd || function(){}; | ||
@@ -89,2 +94,3 @@ _this.onShow = config.onShow || function(){}; | ||
_this.hide(); | ||
_this.cancel(_this.curIndexArr, _this.curValue); | ||
}); | ||
@@ -114,2 +120,3 @@ | ||
_this.hide(); | ||
_this.cancel(_this.curIndexArr, _this.curValue); | ||
}); | ||
@@ -392,3 +399,2 @@ _this.popUp.addEventListener('click',function(){ | ||
}, | ||
reRenderWheels: function(){ | ||
@@ -395,0 +401,0 @@ var _this = this; |
{ | ||
"name": "mobile-select", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "A multi-function mobile phone scrolling selector, support single to multi-select, support multi-level cascade, provide custom callback function, provide update function redraw, relocation function, compatible pc drag and so on.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
44482
808