weex-vue-framework
Advanced tools
Comparing version 2.2.2-weex.3 to 2.2.2-weex.4
36
index.js
@@ -375,12 +375,5 @@ 'use strict'; | ||
}; | ||
var instance = instances[instanceId]; | ||
var timerId, callbackId; | ||
if (global.setTimeoutWeex && (typeof global.setTimeoutWeex === 'function')) { | ||
callbackId = instance.document.taskCenter.normalize(handler); | ||
timerId = global.setTimeoutWeex(instanceId, callbackId, args[1]); | ||
return timerId | ||
} else { | ||
timer.setTimeout(handler, args[1]); | ||
} | ||
timer.setTimeout(handler, args[1]); | ||
return instance.callbackId.toString() | ||
}, | ||
@@ -395,25 +388,10 @@ setInterval: function () { | ||
var instance = instances[instanceId]; | ||
var timerId, callbackId; | ||
if (global.setIntervalWeex && (typeof global.setIntervalWeex === 'function')) { | ||
callbackId = instance.document.taskCenter.normalize(handler); | ||
timerId = global.setIntervalWeex(instanceId, callbackId, args[1]); | ||
return timerId | ||
} else { | ||
timer.setInterval(handler, args[1]); | ||
} | ||
timer.setInterval(handler, args[1]); | ||
return instance.callbackId.toString() | ||
}, | ||
clearTimeout: function (n) { | ||
if (global.clearTimeoutWeex && (typeof global.clearTimeoutWeex === 'function')) { | ||
global.clearTimeoutWeex(n); | ||
} else { | ||
timer.clearTimeout(n); | ||
} | ||
timer.clearTimeout(n); | ||
}, | ||
clearInterval: function (n) { | ||
if (global.clearIntervalWeex && (typeof global.clearIntervalWeex === 'function')) { | ||
global.clearIntervalWeex(n); | ||
} else { | ||
timer.clearInterval(n); | ||
} | ||
timer.clearInterval(n); | ||
} | ||
@@ -420,0 +398,0 @@ }; |
{ | ||
"name": "weex-vue-framework", | ||
"version": "2.2.2-weex.3", | ||
"version": "2.2.2-weex.4", | ||
"description": "Vue 2.0 Framework for Weex", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
166442
5736