Mercurial > bugzilla-dashboard
comparison index.html @ 85:516e69809e06
Load json2.js if no native window.JSON implementation is found.
author | Atul Varma <avarma@mozilla.com> |
---|---|
date | Mon, 26 Apr 2010 11:40:55 -0700 |
parents | 677df912e92d |
children | ee0a4597c067 |
comparison
equal
deleted
inserted
replaced
83:c38db28b48f5 | 85:516e69809e06 |
---|---|
148 | 148 |
149 moduleScriptNames.forEach(function(name) { | 149 moduleScriptNames.forEach(function(name) { |
150 moduleScripts.push("js/modules/" + name + ".js"); | 150 moduleScripts.push("js/modules/" + name + ".js"); |
151 }); | 151 }); |
152 | 152 |
153 if (!('JSON' in window)) | |
154 moduleScripts.push("js/json2.js"); | |
155 | |
153 Require.preload(document, moduleScripts, function whenLoaded() { | 156 Require.preload(document, moduleScripts, function whenLoaded() { |
154 $("#loading-screen").hide(); | 157 $("#loading-screen").hide(); |
155 $(".hide-while-loading").show(); | 158 $(".hide-while-loading").show(); |
156 | 159 |
157 var moduleExports = {}; | 160 var moduleExports = {}; |