Browse Source

context重构

es6
guy 4 years ago
parent
commit
f072bdd3b0
  1. 13
      dist/fix/fix.compact.ie.js
  2. 3
      dist/fix/fix.compact.js
  3. 6
      src/core/widget.js

13
dist/fix/fix.compact.ie.js vendored

@ -34,9 +34,6 @@
function popTarget () {
Fix.Model.target = target = targetStack.pop();
if (targetStack.length <= 0) {
Fix.Model.target = target = null;
}
}
var oldWatch = Fix.watch;
@ -231,14 +228,14 @@
BI.defer(function () {
additionFunc();
}, 200);
}
};
var back = window.history.back;
window.history.back = function () {
back.apply(this, arguments);
BI.defer(function () {
additionFunc();
}, 200);
}
};
}
if (BI.Router) {
@ -246,7 +243,7 @@
BI.Router.prototype.execute = function () {
execute.apply(this, arguments);
additionFunc();
}
};
}
_.each(["each", "map", "reduce", "reduceRight", "find", "filter", "reject", "every", "all", "some", "any", "max", "min",
@ -325,7 +322,7 @@
} finally {
return _.cloneDeep(obj);
}
}
};
Fix.del = function (obj, k) {
try {
delete obj[k];
@ -334,5 +331,5 @@
} finally {
return _.cloneDeep(obj);
}
}
};
}());

3
dist/fix/fix.compact.js vendored

@ -34,9 +34,6 @@
function popTarget () {
Fix.Model.target = target = targetStack.pop();
if (targetStack.length <= 0) {
Fix.Model.target = target = null;
}
}
var oldWatch = Fix.watch;

6
src/core/widget.js

@ -518,9 +518,6 @@
BI.Widget.popContext = function () {
BI.Widget.context = context = contextStack.pop();
if (contextStack.length <= 0) {
BI.Widget.context = context = null;
}
};
function pushTarget (_current) {
@ -530,9 +527,6 @@
function popTarget () {
BI.Widget.current = current = currentStack.pop();
if (currentStack.length <= 0) {
BI.Widget.current = current = null;
}
}
BI.onBeforeMount = function (beforeMount) {

Loading…
Cancel
Save