Changeset 629

Show
Ignore:
Timestamp:
03/05/06 13:54:26 (2 years ago)
Author:
therve@gmail.com
Message:

Want a clean changeset

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • mochikit/branches/scriptaculous/MochiKit/Signal.js

    r628 r629  
    361361    _getSlot: function (slot, func) { 
    362362        if (typeof(func) == 'string' || typeof(func) == 'function') { 
    363             if (typeof(func) == 'string' && typeof(slot[func]) == 'undefined') { 
    364                 throw new Error('Invalid function slot'); 
    365             } 
    366363            slot = [slot, func]; 
    367364        } else if (!func && typeof(slot) == 'function') { 
     
    458455 
    459456        slot = MochiKit.Signal._getSlot(slot, func); 
    460         //alert(slot + " " + slot.length + " " + typeof(slot[1]) + " " + slot[0][slot[1]]); 
    461457 
    462458        // Find the signal, attach the slot. 
     
    470466            } 
    471467 
    472             // Add the signal connector if it hasnt been done already. 
     468            // Add the signal connector if it hasn't been done already. 
    473469            if (!src.__listeners[sig]) { 
    474470                var listener = function (nativeEvent) { 
     
    542538                } 
    543539            } 
    544         } else { 
    545             throw new Error("Invalid signal to disconnect"); 
    546540        } 
    547541