aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ajax.js2
-rw-r--r--src/core.js3
-rw-r--r--src/offset.js2
3 files changed, 5 insertions, 2 deletions
diff --git a/src/ajax.js b/src/ajax.js
index 6c8a22e8a..c255dfeba 100644
--- a/src/ajax.js
+++ b/src/ajax.js
@@ -497,7 +497,7 @@ jQuery.extend({
// Get the JavaScript object, if JSON is used.
if ( type == "json" )
- data = eval("(" + data + ")");
+ data = window["eval"]("(" + data + ")");
}
return data;
diff --git a/src/core.js b/src/core.js
index 592c9a033..8c4c09b46 100644
--- a/src/core.js
+++ b/src/core.js
@@ -9,6 +9,9 @@
* $Rev$
*/
+// Will speed up references to window, and allows munging its name.
+var window = this;
+
// Map over jQuery in case of overwrite
var _jQuery = window.jQuery,
// Map over the $ in case of overwrite
diff --git a/src/offset.js b/src/offset.js
index c7f26d1c8..cc1b87440 100644
--- a/src/offset.js
+++ b/src/offset.js
@@ -50,7 +50,7 @@ else
jQuery.offset = {
initialize: function() {
if ( this.initialized ) return;
- var body = document.body, container = document.createElement('div'), innerDiv, checkDiv, table, rules, prop, bodyMarginTop = body.style.marginTop,
+ var body = document.body, container = document.createElement('div'), innerDiv, checkDiv, table, td, rules, prop, bodyMarginTop = body.style.marginTop,
html = '<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"cellpadding="0"cellspacing="0"><tr><td></td></tr></table>';
rules = { position: 'absolute', top: 0, left: 0, margin: 0, border: 0, width: '1px', height: '1px', visibility: 'hidden' };