Changeset 1369
- Timestamp:
- 05/06/08 01:21:54 (2 weeks ago)
- Files:
-
- mochikit/trunk/MochiKit/DOM.js (modified) (1 diff)
- mochikit/trunk/packed/MochiKit/MochiKit.js (modified) (1 diff)
- mochikit/trunk/tests/test_MochiKit-DOM.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
mochikit/trunk/MochiKit/DOM.js
r1368 r1369 362 362 return false; 363 363 } 364 while (node != = self._document) {364 while (node != null && node !== self._document) { 365 365 if (node === maybeparent) { 366 366 return true; mochikit/trunk/packed/MochiKit/MochiKit.js
r1368 r1369 2847 2847 return false; 2848 2848 } 2849 while(node!= =self._document){2849 while(node!=null&&node!==self._document){ 2850 2850 if(node===_310){ 2851 2851 return true; mochikit/trunk/tests/test_MochiKit-DOM.html
r1346 r1369 302 302 ok( isChildNode('child', document.body), "isChildNode of body"); 303 303 ok( isChildNode($('child').firstChild, 'parentTwo'), "isChildNode text node"); 304 ok( !isChildNode( SPAN(), document.body), "isChildNode child not in DOM"); 305 ok( !isChildNode( SPAN(), 'child'), "isChildNode child not in DOM"); 306 ok( !isChildNode( 'child', SPAN()), "isChildNode parent not in DOM"); 304 307 305 308 ok( true, "test suite finished!");
