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/Drag.md

    r1505 r1546  
    3434### Events: 
    3535 
    36 * onBeforeStart - Executed before the Drag instance attaches the events. Receives the dragged element as an argument. 
    37 * onStart       - Executed when the user starts to drag (on mousedown). Receives the dragged element as an argument. 
    38 * onSnap        - Executed when the user has dragged past the snap option. Receives the dragged element as an argument. 
    39 * onDrag        - Executed on every step of the drag. Receives the dragged element as an argument. 
    40 * onComplete    - Executed when the user completes the drag. Receives the dragged element as an argument. 
     36* beforeStart - Executed before the Drag instance attaches the events. Receives the dragged element as an argument. 
     37* start       - Executed when the user starts to drag (on mousedown). Receives the dragged element as an argument. 
     38* snap        - Executed when the user has dragged past the snap option. Receives the dragged element as an argument. 
     39* drag        - Executed on every step of the drag. Receives the dragged element as an argument. 
     40* complete    - Executed when the user completes the drag. Receives the dragged element as an argument. 
    4141 
    4242### Examples: 
     
    126126------------------------------ 
    127127 
    128 Stops (removes) all attached events from the Drag instance and executes the onComplete Event. 
     128Stops (removes) all attached events from the Drag instance and executes the 'complete' Event. 
    129129 
    130130### Syntax: