fast-vue-multi-pages 1.0.13 → 1.0.14
Sign up to get free protection for your applications and to get access to all the features.
@@ -54,7 +54,10 @@ class FastVueMultiWatcher {
|
|
54
54
|
static pushWatcher(eventName, callback) {
|
55
55
|
let lastConfigs = this.getWatcherConfig()[eventName];
|
56
56
|
if (lastConfigs) {
|
57
|
-
lastConfigs.push(
|
57
|
+
lastConfigs.push({
|
58
|
+
timestamp: new Date().getTime(),
|
59
|
+
callback: callback,
|
60
|
+
});
|
58
61
|
}
|
59
62
|
else {
|
60
63
|
this.getWatcherConfig()[eventName] = [{
|
@@ -58,7 +58,10 @@ define(["require", "exports", "tslib", "lodash", "js-cookie"], function (require
|
|
58
58
|
FastVueMultiWatcher.pushWatcher = function (eventName, callback) {
|
59
59
|
var lastConfigs = this.getWatcherConfig()[eventName];
|
60
60
|
if (lastConfigs) {
|
61
|
-
lastConfigs.push(
|
61
|
+
lastConfigs.push({
|
62
|
+
timestamp: new Date().getTime(),
|
63
|
+
callback: callback,
|
64
|
+
});
|
62
65
|
}
|
63
66
|
else {
|
64
67
|
this.getWatcherConfig()[eventName] = [{
|