guy 7 years ago
parent
commit
eb895a515c
  1. 6
      dist/_fineui.min.js
  2. 13
      dist/bundle.js
  3. 6
      dist/bundle.min.js
  4. 13
      dist/core.js
  5. 6
      dist/fineui.min.js
  6. 13
      src/core/inject.js
  7. 13
      utils/utils.js

6
dist/_fineui.min.js vendored

File diff suppressed because one or more lines are too long

13
dist/bundle.js vendored

@ -28800,11 +28800,13 @@ BI.extend(BI.DOM, {
}; };
var actions = {}; var actions = {};
var globalAction; var globalAction = [];
BI.action = function (type, actionFn) { BI.action = function (type, actionFn) {
if (BI.isFunction(type)) { if (BI.isFunction(type)) {
globalAction = type; globalAction.push(type);
return; return function () {
BI.remove(globalAction, actionFn);
};
} }
if (!actions[type]) { if (!actions[type]) {
actions[type] = []; actions[type] = [];
@ -28928,7 +28930,10 @@ BI.extend(BI.DOM, {
}); });
}, },
runGlobalAction: function () { runGlobalAction: function () {
globalAction && globalAction.apply(null, arguments); var args = [].slice.call(arguments);
BI.each(globalAction, function (i, act) {
act.apply(null, args);
});
} }
}; };
})(); })();

6
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

13
dist/core.js vendored

@ -28800,11 +28800,13 @@ BI.extend(BI.DOM, {
}; };
var actions = {}; var actions = {};
var globalAction; var globalAction = [];
BI.action = function (type, actionFn) { BI.action = function (type, actionFn) {
if (BI.isFunction(type)) { if (BI.isFunction(type)) {
globalAction = type; globalAction.push(type);
return; return function () {
BI.remove(globalAction, actionFn);
};
} }
if (!actions[type]) { if (!actions[type]) {
actions[type] = []; actions[type] = [];
@ -28928,7 +28930,10 @@ BI.extend(BI.DOM, {
}); });
}, },
runGlobalAction: function () { runGlobalAction: function () {
globalAction && globalAction.apply(null, arguments); var args = [].slice.call(arguments);
BI.each(globalAction, function (i, act) {
act.apply(null, args);
});
} }
}; };
})(); })();

6
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

13
src/core/inject.js

@ -53,11 +53,13 @@
}; };
var actions = {}; var actions = {};
var globalAction; var globalAction = [];
BI.action = function (type, actionFn) { BI.action = function (type, actionFn) {
if (BI.isFunction(type)) { if (BI.isFunction(type)) {
globalAction = type; globalAction.push(type);
return; return function () {
BI.remove(globalAction, actionFn);
};
} }
if (!actions[type]) { if (!actions[type]) {
actions[type] = []; actions[type] = [];
@ -181,7 +183,10 @@
}); });
}, },
runGlobalAction: function () { runGlobalAction: function () {
globalAction && globalAction.apply(null, arguments); var args = [].slice.call(arguments);
BI.each(globalAction, function (i, act) {
act.apply(null, args);
});
} }
}; };
})(); })();

13
utils/utils.js

@ -13239,11 +13239,13 @@ _.extend(BI.OB.prototype, {
}; };
var actions = {}; var actions = {};
var globalAction; var globalAction = [];
BI.action = function (type, actionFn) { BI.action = function (type, actionFn) {
if (BI.isFunction(type)) { if (BI.isFunction(type)) {
globalAction = type; globalAction.push(type);
return; return function () {
BI.remove(globalAction, actionFn);
};
} }
if (!actions[type]) { if (!actions[type]) {
actions[type] = []; actions[type] = [];
@ -13367,7 +13369,10 @@ _.extend(BI.OB.prototype, {
}); });
}, },
runGlobalAction: function () { runGlobalAction: function () {
globalAction && globalAction.apply(null, arguments); var args = [].slice.call(arguments);
BI.each(globalAction, function (i, act) {
act.apply(null, args);
});
} }
}; };
})(); })();

Loading…
Cancel
Save