diff options
Diffstat (limited to 'client/node_modules/domino/lib/sloppy.js')
-rw-r--r-- | client/node_modules/domino/lib/sloppy.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/client/node_modules/domino/lib/sloppy.js b/client/node_modules/domino/lib/sloppy.js deleted file mode 100644 index b5d8950..0000000 --- a/client/node_modules/domino/lib/sloppy.js +++ /dev/null @@ -1,24 +0,0 @@ -/* Domino uses sloppy-mode features (in particular, `with`) for a few - * minor things. This file encapsulates all the sloppiness; every - * other module should be strict. */ -/* jshint strict: false */ -/* jshint evil: true */ -/* jshint -W085 */ -module.exports = { - Window_run: function _run(code, file) { - if (file) code += '\n//@ sourceURL=' + file; - with(this) eval(code); - }, - EventHandlerBuilder_build: function build() { - try { - with(this.document.defaultView || Object.create(null)) - with(this.document) - with(this.form) - with(this.element) - return eval("(function(event){" + this.body + "})"); - } - catch (err) { - return function() { throw err; }; - } - } -}; |