Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added complete to options list.

Used counter instead of array to count pieces in childProcess (a
little better for memory)
  • Loading branch information...
commit 66c830d2144c31e1ccfa74390cca4fabc581db6a 1 parent 66bc0fb
Jesper Lindstroem Nielsen authored
Showing with 11 additions and 5 deletions.
  1. +11 −5 ui/jquery.effects.split.js
View
16 ui/jquery.effects.split.js
@@ -27,7 +27,7 @@
var interval = o.interval,
duration = o.duration - ( o.rows + o.columns ) * interval,
- pieceCounter = [],
+ pieceCounter = 0,
documentCoords = {
height: $( document ).height(),
width: $( document ).width()
@@ -63,8 +63,8 @@
// children animate complete
function childComplete() {
- pieceCounter.push( this );
- if ( pieceCounter.length === o.rows * o.columns ) {
+ pieceCounter++;
+ if ( pieceCounter === o.rows * o.columns ) {
animComplete();
}
}
@@ -188,6 +188,7 @@
* pieces,
* fade,
* show
+ * complete
*/
return this.queue( function( next ) {
@@ -279,7 +280,8 @@
* easing,
* pieces,
* fade,
- * show
+ * show,
+ * complete
*/
return this.queue( function( next ) {
@@ -369,7 +371,8 @@
* interval,
* easing,
* pieces,
- * show
+ * show,
+ * complete
*/
return this.queue( function( next ) {
@@ -416,6 +419,7 @@
* interval,
* fade,
* show,
+ * complete,
* crop
*/
@@ -500,6 +504,8 @@
* pieces,
* fade,
* show,
+ * show,
+ * complete
* crop
*/
Please sign in to comment.
Something went wrong with that request. Please try again.