Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
wrong var name
  • Loading branch information
josh committed May 31, 2010
1 parent 6b58671 commit c4d58e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/wysihat/events/frame_loaded.js
Expand Up @@ -40,10 +40,10 @@
element.on('load', function() {
var frameDocument;

if (typeof frame.contentDocument !== 'undefined') {
frameDocument = frame.contentDocument;
} else if (typeof frame.contentWindow !== 'undefined' && typeof frame.contentWindow.document !== 'undefined') {
frameDocument = frame.contentWindow.document;
if (typeof element.contentDocument !== 'undefined') {
frameDocument = element.contentDocument;
} else if (typeof element.contentWindow !== 'undefined' && typeof element.contentWindow.document !== 'undefined') {
frameDocument = element.contentWindow.document;
}

onReadyStateComplete(frameDocument, fireFrameLoaded);
Expand Down

0 comments on commit c4d58e8

Please sign in to comment.