Update jQuery.hasData to always return a boolean, with unit tests.
[jquery.git] / src / intro.js
index 95f345c..cb15705 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright 2010, John Resig
  * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://docs.jquery.com/License
+ * http://jquery.org/license
  *
  * Includes Sizzle.js
  * http://sizzlejs.com/
@@ -15,3 +15,5 @@
  */
 (function( window, undefined ) {
 
+// Use the correct document accordingly with window argument (sandbox)
+var document = window.document;