Changeset 2001 for trunk/testtools

Show
Ignore:
Timestamp:
10/30/05 14:03:59 (3 years ago)
Author:
alex
Message:

fixing the has* methods

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/testtools/JsFakeDom/BUFakeDom.js

    r1996 r2001  
    439439// Boolean hasChildNodes() 
    440440BUFakeNode.prototype.hasChildNodes = function() { 
    441   return this[childNodes] && this.childNodes.length > 0; 
     441  return this["childNodes"] && this.childNodes.length > 0; 
    442442} 
    443443 
    444444// Boolean hasAttributes() 
    445445BUFakeNode.prototype.hasAttributes = function() { 
    446   return this[attributes] && this.attributes.length > 0; 
     446  return this["attributes"] && this.attributes.length > 0; 
    447447} 
    448448