AnalyticalGraphicsInc/cesium — pull request #199 by shunter (2012-08-30 20:37:30+00:00)
Title: Fix CesiumViewer in IE

Our setup code (the AMD define functions) needs to execute without failing under IE so that the JavaScript that check for Chrome Frame and displays a popup gets a chance to run.

So, we can't use Object.freeze or other ES5 features at setup time. Instead, we have a freezeObject helper function that is a no-op if Object.freeze is unavailable at runtime.

I also cleaned up some of the core types to use defaultValue, and some other minor things while I was in those files.