Closed p3drosola closed 12 years ago
changing the content like so enables it to compile with r.js
define(function() {
return {
'XMLSerializer': (typeof(XMLSerializer) !== 'undefined')? XMLSerializer : undefined,
'DOMParser': (typeof(DOMParser) !== 'undefined')? DOMParser : undefined,
'implementation': (typeof(document) !== 'undefined')? document.implementation : undefined
};
});
When using the AMD build, it requires another file, which is not included in the build (xmlshim.js). I was able to find the file in one of the examples.