znerol / node-delta

Delta.js - A JavaScript diff and patch engine for DOM trees
http://znerol.github.com/node-delta/
MIT License
47 stars 11 forks source link

xmlshim.js #1

Closed p3drosola closed 12 years ago

p3drosola commented 12 years ago

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.

p3drosola commented 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
    };

});