This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Polyfill for missing window.DOMParser on CocoonJS. Once you have this file in your dependency list, | |
* all you need to do is CocoonJS check in your main application file, eg: | |
* | |
* in app.js/index.js/main.js | |
* | |
* var GameSpace = {}; | |
* window.onload = function() { | |
* if (navigator.isCocoonJS) { | |
* window.DOMParser = GameSpace.DOMishParser; |