Changeset 1385

Show
Ignore:
Timestamp:
06/11/08 01:18:20 (4 months ago)
Author:
cederberg@gmail.com
Message:

Corrected throw statements in MochiKit.Visual.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • mochikit/trunk/MochiKit/Visual.js

    r1383 r1385  
    15741574    element = d.getElement(element); 
    15751575    if (!element.firstChild) { 
    1576         throw "MochiKit.Visual.slideDown must be used on a element with a child"
     1576        throw new Error("MochiKit.Visual.slideDown must be used on a element with a child")
    15771577    } 
    15781578    d.removeEmptyTextNodes(element); 
     
    16311631    element = d.getElement(element); 
    16321632    if (!element.firstChild) { 
    1633         throw "MochiKit.Visual.slideUp must be used on a element with a child"
     1633        throw new Error("MochiKit.Visual.slideUp must be used on a element with a child")
    16341634    } 
    16351635    d.removeEmptyTextNodes(element); 
  • mochikit/trunk/packed/MochiKit/MochiKit.js

    r1383 r1385  
    64706470_6dd=d.getElement(_6dd); 
    64716471if(!_6dd.firstChild){ 
    6472 throw "MochiKit.Visual.slideDown must be used on a element with a child"
     6472throw new Error("MochiKit.Visual.slideDown must be used on a element with a child")
    64736473} 
    64746474d.removeEmptyTextNodes(_6dd); 
     
    65056505_6e7=d.getElement(_6e7); 
    65066506if(!_6e7.firstChild){ 
    6507 throw "MochiKit.Visual.slideUp must be used on a element with a child"
     6507throw new Error("MochiKit.Visual.slideUp must be used on a element with a child")
    65086508} 
    65096509d.removeEmptyTextNodes(_6e7); 
     
    68056805 
    68066806 
    6807