Permalink
Cannot retrieve contributors at this time
58 lines (45 sloc)
1.52 KB
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
codeql-action/node_modules/xmlbuilder/lib/XMLNamedNodeMap.js
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
// Generated by CoffeeScript 1.12.7 | |
(function() { | |
var XMLNamedNodeMap; | |
module.exports = XMLNamedNodeMap = (function() { | |
function XMLNamedNodeMap(nodes) { | |
this.nodes = nodes; | |
} | |
Object.defineProperty(XMLNamedNodeMap.prototype, 'length', { | |
get: function() { | |
return Object.keys(this.nodes).length || 0; | |
} | |
}); | |
XMLNamedNodeMap.prototype.clone = function() { | |
return this.nodes = null; | |
}; | |
XMLNamedNodeMap.prototype.getNamedItem = function(name) { | |
return this.nodes[name]; | |
}; | |
XMLNamedNodeMap.prototype.setNamedItem = function(node) { | |
var oldNode; | |
oldNode = this.nodes[node.nodeName]; | |
this.nodes[node.nodeName] = node; | |
return oldNode || null; | |
}; | |
XMLNamedNodeMap.prototype.removeNamedItem = function(name) { | |
var oldNode; | |
oldNode = this.nodes[name]; | |
delete this.nodes[name]; | |
return oldNode || null; | |
}; | |
XMLNamedNodeMap.prototype.item = function(index) { | |
return this.nodes[Object.keys(this.nodes)[index]] || null; | |
}; | |
XMLNamedNodeMap.prototype.getNamedItemNS = function(namespaceURI, localName) { | |
throw new Error("This DOM method is not implemented."); | |
}; | |
XMLNamedNodeMap.prototype.setNamedItemNS = function(node) { | |
throw new Error("This DOM method is not implemented."); | |
}; | |
XMLNamedNodeMap.prototype.removeNamedItemNS = function(namespaceURI, localName) { | |
throw new Error("This DOM method is not implemented."); | |
}; | |
return XMLNamedNodeMap; | |
})(); | |
}).call(this); |