in partnership with mediatemple

Show
Ignore:
Timestamp:
05/05/08 10:36:32 (1 week ago)
Author:
JanK
Message:
  • Class events should now be used without their on prefix, i.e. addEvent('onChainComplete', fn) becomes addEvent('chainComplete'). If you want to add events in the options you need to prefix them with 'on' now ('foo' -> 'onFoo').

Note: This is not a breaking change.

- other minor optimizations and doc fixes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/Docs/Plugins/Group.md

    r1464 r1546  
    2323 
    2424        var group = new Group(xhr1, xhr2, xhr3); 
    25         group.addEvent('onComplete', function(){ 
     25        group.addEvent('complete', function(){ 
    2626                alert('All Scripts loaded'); 
    2727        }); 
     
    4444###     Arguments: 
    4545 
    46 1. type - (*string*) The event name (e.g. 'onComplete') to add. 
     461. type - (*string*) The event name (e.g. 'complete') to add. 
    47472. fn   - (*function*) The callback function to execute when all instances fired this event. 
    4848