public
Fork of madrobby/scripty2
Description: This is the alpha version of script.aculo.us 2, lovingly called "scripty2".
Homepage: http://script.aculo.us/2
Clone URL: git://github.com/kommen/scripty2.git
Search Repo:
Add a cancel method to Effect.Morph.

It stops the morph in it's current state and removes the effect
from it's queue. 'after' callback is called though.
kommen (author)
Wed May 07 01:30:51 -0700 2008
commit  e07c25b7648d32d59d8c16ef93f8360c91de9de2
tree    cee1d2d6623558eb2edfbac9197eb71d86d6df5b
parent  b481420d79ce3a0fc4a09f5a2bac58c8a04c02bd
...
9
10
11
 
 
 
 
 
 
 
12
13
14
...
9
10
11
12
13
14
15
16
17
18
19
20
21
0
@@ -9,6 +9,13 @@
0
       });
0
   },
0
 
0
+ cancel: function() {
0
+ if (this.teardown) this.teardown();
0
+ if (this.options.after) this.options.after(this);
0
+ this.state = 'finished';
0
+ this.options.queue.remove(this);
0
+ },
0
+
0
   teardown: function() {
0
     if (this.options.change)
0
       this.teardownWrappers();

Comments

    No one has commented yet.