XMLNodeList.js 560 B

1234567891011121314151617181920212223242526272829
  1. // Generated by CoffeeScript 1.12.7
  2. (function() {
  3. var XMLNodeList;
  4. module.exports = XMLNodeList = (function() {
  5. function XMLNodeList(nodes) {
  6. this.nodes = nodes;
  7. }
  8. Object.defineProperty(XMLNodeList.prototype, 'length', {
  9. get: function() {
  10. return this.nodes.length || 0;
  11. }
  12. });
  13. XMLNodeList.prototype.clone = function() {
  14. return this.nodes = null;
  15. };
  16. XMLNodeList.prototype.item = function(index) {
  17. return this.nodes[index] || null;
  18. };
  19. return XMLNodeList;
  20. })();
  21. }).call(this);