ywana-core8 0.0.773 → 0.0.775
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +4 -10
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +4 -10
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/incubator/task.js +1 -1
package/dist/index.modern.js
CHANGED
@@ -11054,16 +11054,10 @@ var TaskContextProvider = function TaskContextProvider(props) {
|
|
11054
11054
|
var interval = setInterval(function () {
|
11055
11055
|
try {
|
11056
11056
|
return Promise.resolve(API.all()).then(function (tasks) {
|
11057
|
-
// invoque
|
11058
|
-
|
11059
|
-
var
|
11060
|
-
|
11061
|
-
var listenerTasks = tasks.filter(function (task) {
|
11062
|
-
return task.name === taskName;
|
11063
|
-
});
|
11064
|
-
listenerTasks.forEach(function (task) {
|
11065
|
-
return listener(task, value);
|
11066
|
-
});
|
11057
|
+
// invoque listener for each task
|
11058
|
+
tasks.forEach(function (task) {
|
11059
|
+
var listener = _listeners[task.name || task.action];
|
11060
|
+
if (listener) listener(task);
|
11067
11061
|
});
|
11068
11062
|
});
|
11069
11063
|
} catch (e) {
|