Skip to content

Commit d70922a

Browse files
author
Adam J. McIntyre
committed
Fix issue where swf may be flagged as "ready" but external interface is not yet initialized.
1 parent c7848bf commit d70922a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jquery.FileReader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
if (self.ready) {
109109
readyCallbacks.fire();
110110
}
111-
self.ready = e.success;
111+
self.ready = e.success && typeof e.ref.add === "function";
112112
});
113113
},
114114
swfObject: null,
@@ -149,7 +149,7 @@
149149
if (this.ready) {
150150
readyCallbacks.fire();
151151
}
152-
this.ready = true;
152+
this.ready = typeof this.swfObject.add === "function";
153153
return true;
154154
}
155155
};

0 commit comments

Comments
 (0)