Browse Source

Merge pull request #328 in ~GUY/fineui from ~WINDY/fineui:master to master

* commit '05310cc11eb5c7b651a161f6e3b145e71e9bb3b1':
  BI.point
es6
windy 7 years ago
parent
commit
db99c3f375
  1. 34
      dist/bundle.js
  2. 66
      dist/bundle.min.js
  3. 34
      dist/core.js
  4. 34
      dist/fineui.js
  5. 22
      dist/fineui.min.js
  6. 34
      src/core/inject.js
  7. 34
      utils/utils.js

34
dist/bundle.js vendored

@ -20364,27 +20364,31 @@ BI.extend(BI.DOM, {
for (var action in points[type]) { for (var action in points[type]) {
var bfns = points[type][action].before; var bfns = points[type][action].before;
if (bfns) { if (bfns) {
BI.aspect.before(inst, action, function () { BI.aspect.before(inst, action, function (bfns) {
for (var i = 0, len = bfns.length; i < len; i++) { return function () {
try { for (var i = 0, len = bfns.length; i < len; i++) {
bfns[i].apply(inst, arguments); try {
} catch (e) { bfns[i].apply(inst, arguments);
console.error(e); } catch (e) {
console.error(e);
}
} }
} };
}); }(bfns));
} }
var afns = points[type][action].after; var afns = points[type][action].after;
if (afns) { if (afns) {
BI.aspect.after(inst, action, function () { BI.aspect.after(inst, action, function (afns) {
for (var i = 0, len = afns.length; i < len; i++) { return function () {
try { for (var i = 0, len = afns.length; i < len; i++) {
afns[i].apply(inst, arguments); try {
} catch (e) { afns[i].apply(inst, arguments);
console.error(e); } catch (e) {
console.error(e);
}
} }
} }
}); }(afns));
} }
} }
} }

66
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

34
dist/core.js vendored

@ -20364,27 +20364,31 @@ BI.extend(BI.DOM, {
for (var action in points[type]) { for (var action in points[type]) {
var bfns = points[type][action].before; var bfns = points[type][action].before;
if (bfns) { if (bfns) {
BI.aspect.before(inst, action, function () { BI.aspect.before(inst, action, function (bfns) {
for (var i = 0, len = bfns.length; i < len; i++) { return function () {
try { for (var i = 0, len = bfns.length; i < len; i++) {
bfns[i].apply(inst, arguments); try {
} catch (e) { bfns[i].apply(inst, arguments);
console.error(e); } catch (e) {
console.error(e);
}
} }
} };
}); }(bfns));
} }
var afns = points[type][action].after; var afns = points[type][action].after;
if (afns) { if (afns) {
BI.aspect.after(inst, action, function () { BI.aspect.after(inst, action, function (afns) {
for (var i = 0, len = afns.length; i < len; i++) { return function () {
try { for (var i = 0, len = afns.length; i < len; i++) {
afns[i].apply(inst, arguments); try {
} catch (e) { afns[i].apply(inst, arguments);
console.error(e); } catch (e) {
console.error(e);
}
} }
} }
}); }(afns));
} }
} }
} }

34
dist/fineui.js vendored

@ -20565,27 +20565,31 @@ BI.extend(BI.DOM, {
for (var action in points[type]) { for (var action in points[type]) {
var bfns = points[type][action].before; var bfns = points[type][action].before;
if (bfns) { if (bfns) {
BI.aspect.before(inst, action, function () { BI.aspect.before(inst, action, function (bfns) {
for (var i = 0, len = bfns.length; i < len; i++) { return function () {
try { for (var i = 0, len = bfns.length; i < len; i++) {
bfns[i].apply(inst, arguments); try {
} catch (e) { bfns[i].apply(inst, arguments);
console.error(e); } catch (e) {
console.error(e);
}
} }
} };
}); }(bfns));
} }
var afns = points[type][action].after; var afns = points[type][action].after;
if (afns) { if (afns) {
BI.aspect.after(inst, action, function () { BI.aspect.after(inst, action, function (afns) {
for (var i = 0, len = afns.length; i < len; i++) { return function () {
try { for (var i = 0, len = afns.length; i < len; i++) {
afns[i].apply(inst, arguments); try {
} catch (e) { afns[i].apply(inst, arguments);
console.error(e); } catch (e) {
console.error(e);
}
} }
} }
}); }(afns));
} }
} }
} }

22
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

34
src/core/inject.js

@ -89,27 +89,31 @@
for (var action in points[type]) { for (var action in points[type]) {
var bfns = points[type][action].before; var bfns = points[type][action].before;
if (bfns) { if (bfns) {
BI.aspect.before(inst, action, function () { BI.aspect.before(inst, action, function (bfns) {
for (var i = 0, len = bfns.length; i < len; i++) { return function () {
try { for (var i = 0, len = bfns.length; i < len; i++) {
bfns[i].apply(inst, arguments); try {
} catch (e) { bfns[i].apply(inst, arguments);
console.error(e); } catch (e) {
console.error(e);
}
} }
} };
}); }(bfns));
} }
var afns = points[type][action].after; var afns = points[type][action].after;
if (afns) { if (afns) {
BI.aspect.after(inst, action, function () { BI.aspect.after(inst, action, function (afns) {
for (var i = 0, len = afns.length; i < len; i++) { return function () {
try { for (var i = 0, len = afns.length; i < len; i++) {
afns[i].apply(inst, arguments); try {
} catch (e) { afns[i].apply(inst, arguments);
console.error(e); } catch (e) {
console.error(e);
}
} }
} }
}); }(afns));
} }
} }
} }

34
utils/utils.js

@ -4804,27 +4804,31 @@ _.extend(BI.OB.prototype, {
for (var action in points[type]) { for (var action in points[type]) {
var bfns = points[type][action].before; var bfns = points[type][action].before;
if (bfns) { if (bfns) {
BI.aspect.before(inst, action, function () { BI.aspect.before(inst, action, function (bfns) {
for (var i = 0, len = bfns.length; i < len; i++) { return function () {
try { for (var i = 0, len = bfns.length; i < len; i++) {
bfns[i].apply(inst, arguments); try {
} catch (e) { bfns[i].apply(inst, arguments);
console.error(e); } catch (e) {
console.error(e);
}
} }
} };
}); }(bfns));
} }
var afns = points[type][action].after; var afns = points[type][action].after;
if (afns) { if (afns) {
BI.aspect.after(inst, action, function () { BI.aspect.after(inst, action, function (afns) {
for (var i = 0, len = afns.length; i < len; i++) { return function () {
try { for (var i = 0, len = afns.length; i < len; i++) {
afns[i].apply(inst, arguments); try {
} catch (e) { afns[i].apply(inst, arguments);
console.error(e); } catch (e) {
console.error(e);
}
} }
} }
}); }(afns));
} }
} }
} }

Loading…
Cancel
Save