Skip to content

Commit

Permalink
Fix scope error in nowarn checking
Browse files Browse the repository at this point in the history
  • Loading branch information
longouyang committed Nov 4, 2011
1 parent c029213 commit bf225cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mmturkey.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ turk = turk || {};
// We can disable the previewWarning by including this script with "nowarn" in the script url
// (i.e. mmturkey.js?nowarn). This doesn't work in FF 1.5, which doesn't define document.scripts
if (document.scripts) {
for(var i=0, ii = document.scripts.length, src = document.scripts[i].src; i < ii; i++ ) {
for(var i=0, ii = document.scripts.length; i < ii; i++ ) {
var src = document.scripts[i].src;
if ( /mmturkey/.test(src) && /\?nowarn/.test(src) ) {
showPreviewWarning = false;
break;
Expand Down

0 comments on commit bf225cb

Please sign in to comment.