guy 7 years ago
parent
commit
58919f836b
  1. 6
      dist/fix/fix.compact.js

6
dist/fix/fix.compact.js vendored

@ -51,14 +51,16 @@
function findStore (widget) { function findStore (widget) {
var p = widget; var p = widget;
while (p) { while (p) {
if (p.store) { if (p.store || p.__cacheStore) {
break; break;
} }
p = p._parent || (p.options && p.options.element); p = p._parent || (p.options && p.options.element);
} }
if (p) { if (p) {
return p.store; widget.__cacheStore = p.store;
return p.__cacheStore || p.store;
} }
throw new Error("找不到store");
} }
var _init = BI.Widget.prototype._init; var _init = BI.Widget.prototype._init;

Loading…
Cancel
Save