Permalink
Browse files

Suppresses error reported in Issue #27

  • Loading branch information...
1 parent d0589ac commit 51453fca46a8def3778afc1f70e956797432bd0e @doctyper committed Oct 27, 2011
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/flexie.js
View
@@ -1911,16 +1911,19 @@ var Flexie = (function (win, doc) {
if (target) {
box = FLEX_BOXES[target.FLX_DOM_ID];
- if (box) {
+ if (box && box._instance) {
box._instance.updateModel(box);
- } else {
+ } else if (!box) {
box = new FLX.box(params);
}
} else {
for (key in FLEX_BOXES) {
if (FLEX_BOXES.hasOwnProperty(key)) {
box = FLEX_BOXES[key];
- box._instance.updateModel(box);
+
+ if (box && box._instance) {
+ box._instance.updateModel(box);
+ }
}
}
}

0 comments on commit 51453fc

Please sign in to comment.