Skip to content
Browse files

set window as global in jshint

  • Loading branch information...
1 parent f0104c2 commit 4b16b48c80476c411fdc2da027fee40a8eb6bc48 @joecorcoran committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/generators/judge/templates/judge.js
View
4 lib/generators/judge/templates/judge.js
@@ -6,7 +6,7 @@
// Hopefully the comments here will help you understand what's happening under the hood.
/*jshint curly: true, evil: true, newcap: true, noarg: true, strict: false */
-/*global _: false, JSON: false */
+/*global window: false, _: false, JSON: false */
(function(root) {
@@ -161,7 +161,7 @@
confirmation: function(value, options, messages) {
var id = this._element.getAttribute('id'),
confId = id + '_confirmation',
- confElem = document.getElementById(confId);
+ confElem = root.document.getElementById(confId);
return (value === confElem.value) ? [] : [messages.confirmation];
}
};

0 comments on commit 4b16b48

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