From: rwldrn Date: Wed, 15 Dec 2010 19:51:10 +0000 (-0500) Subject: Fixes ==/===; deletes test/data/json.js X-Git-Tag: v0.2~45 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=b8b698e6845a6f0759aecb98010900a0f12fadf5;p=popcorn-js.git Fixes ==/===; deletes test/data/json.js --- diff --git a/popcorn.js b/popcorn.js index 7be5192..febc859 100644 --- a/popcorn.js +++ b/popcorn.js @@ -577,7 +577,7 @@ onreadystatechange = settings.ajax.onreadystatechange = function() { - if ( settings.ajax.readyState == 4 ) { + if ( settings.ajax.readyState === 4 ) { try { json = JSON.parse(settings.ajax.responseText); diff --git a/test/data/json.js b/test/data/json.js deleted file mode 100644 index fa798a0..0000000 --- a/test/data/json.js +++ /dev/null @@ -1 +0,0 @@ -{ "data": {"lang": "en", "length": 25} } \ No newline at end of file