guy 6 years ago
parent
commit
c1f9dea622
  1. 2
      dist/_fineui.min.js
  2. 2
      dist/fineui.min.js
  3. 11
      dist/fix/fix.compact.js

2
dist/_fineui.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

11
dist/fix/fix.compact.js vendored

@ -23,7 +23,7 @@
var targetStack = []; var targetStack = [];
function pushTarget (_target) { function pushTarget (_target) {
if (target) targetStack.push(target) if (target) targetStack.push(target);
Fix.Model.target = target = _target; Fix.Model.target = target = _target;
} }
@ -35,7 +35,7 @@
var contextStack = []; var contextStack = [];
function pushContext (_context) { function pushContext (_context) {
if (context) contextStack.push(context) if (context) contextStack.push(context);
Fix.Model.context = context = _context; Fix.Model.context = context = _context;
} }
@ -61,7 +61,10 @@
}; };
function findStore (widget) { function findStore (widget) {
var p = widget; if (target != null) {
return target;
}
var p = widget || context;
while (p) { while (p) {
if (p.store || p.__cacheStore) { if (p.store || p.__cacheStore) {
break; break;
@ -94,7 +97,7 @@
var self = this; var self = this;
var needPop = false; var needPop = false;
if (window.Fix && this._store) { if (window.Fix && this._store) {
var store = findStore(this.options.element || context); var store = findStore(this.options.element);
if (store) { if (store) {
pushTarget(store); pushTarget(store);
needPop = true; needPop = true;

Loading…
Cancel
Save