We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a70e3d commit dae9d01Copy full SHA for dae9d01
asset/toucher.js
@@ -46,7 +46,8 @@ window.util.toucher = window.util.toucher || function (dom){
46
//检测callback是否合法,事件名参数是否存在·
47
if(typeof(fn) == 'function' && eventStr && eventStr.length){
48
var eventNames = eventStr.split(/\s+/);
49
- for(var i=0,total=eventNames;i<total;i++){
+ for(var i=0,total=eventNames.length;i<total;i++){
50
+
51
var eventName = eventNames[i];
52
//事件堆无该事件,创建一个事件堆
53
if(!this._events[eventName]){
0 commit comments