Skip to content
Browse files

A bit of code cleanup on the script-append patch.

  • Loading branch information...
1 parent e4704ee commit 9afd5bf3008d3e3b39028750ab259a5eec277f3f @mde committed Jul 5, 2010
Showing with 4 additions and 3 deletions.
  1. +4 −3 windmill/html/js/wm/jstest.js
View
7 windmill/html/js/wm/jstest.js
@@ -115,15 +115,15 @@ windmill.jsTest = new function () {
// e.g., item[0]
// Have to squelch errors because doing this test
// on generic objects throws
- //if (fleegix.isIE) {
+ if (fleegix.isIE) {
try {
if (typeof item[0] != 'undefined') {
testableType = _testables.ARR;
}
}
// Squelch, throws on plain object
catch (e) {}
- //}
+ }
return testableType;
};
@@ -161,7 +161,8 @@ windmill.jsTest = new function () {
try {
if (_brokenEval || windmill.scriptAppendOnly === true) {
appendScriptTag(win, code);
- } else {
+ }
+ else {
win.eval.call(win, code);
}
}

0 comments on commit 9afd5bf

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