Update update_deps.js for xmldom

This commit is contained in:
Smirnov O. A 2015-01-14 14:32:26 +03:00
commit fb41c6ce4e
4 changed files with 60 additions and 127 deletions

View file

@ -204,7 +204,24 @@ var deps = {
});
}
}
}
},
xmldom: {
fetch: function() {
var rootHref = "https://raw.githubusercontent.com/iDeBugger/xmldom/master/"
var fileMap = {
"sax.js": "mode/xml/sax.js",
"dom-parser.js": "mode/xml/dom-parser.js",
"dom.js": "mode/xml/dom.js"
};
async.forEach(Object.keys(fileMap), function(x, next) {
download(rootHref + x, function(e, d) {
fs.writeFile(rootDir + fileMap[x], d, next)
})
}, function() {
console.log("XmlDOM updating done")
});
}
},
};
var download = function(href, callback) {