znerol / node-delta

Delta.js - A JavaScript diff and patch engine for DOM trees

Home Page:http://znerol.github.com/node-delta/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xmlshim.js

p3drosola opened this issue · comments

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.

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

});