Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Changed the === undefined ready event check to == null since frameEle…

…ment is usually null and was skipping the normal line of checks.
  • Loading branch information...
commit 3a23a5c17dd0522da06db8f36890f134f9004de6 1 parent 0a7232c
Andrea Giammarchi authored November 17, 2009 jeresig committed November 17, 2009

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  src/event.js
2  src/event.js
@@ -854,7 +854,7 @@ function bindReady() {
854 854
 		var toplevel = false;
855 855
 
856 856
 		try {
857  
-			toplevel = window.frameElement === undefined;
  857
+			toplevel = window.frameElement == null;
858 858
 		} catch(e){}
859 859
 
860 860
 		if ( document.documentElement.doScroll && toplevel ) (function() {

0 notes on commit 3a23a5c

Please sign in to comment.
Something went wrong with that request. Please try again.