From e234c442d6a83287058524a8aaaf78d23082937d Mon Sep 17 00:00:00 2001 From: John Doty Date: Tue, 29 Apr 2014 13:12:29 -0700 Subject: [PATCH] Stop accessing missing properties of Document This fixes the script on IE. Apparently, according to the WebIDL standard, you should not be able to access these properties, even to check if they exist, and so IE keeps you from doing it. It's arguable if the standard means anything if IE is the only browser to follow it, but that's the web for you. A simple workaround is to ask hasOwnProperty(); alas, this defeats some of the prettiness of the coffeescript. Its only advantage is that it is functional. --- htdocs/coffee/src/run.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/coffee/src/run.coffee b/htdocs/coffee/src/run.coffee index 1d6c9df..34c2892 100644 --- a/htdocs/coffee/src/run.coffee +++ b/htdocs/coffee/src/run.coffee @@ -100,7 +100,7 @@ Document::run = -> true -if Document::body and Document::run +if document.hasOwnProperty('body') and document.hasOwnProperty('run') document.run() else JQ(document).ready(Document::run)