Skip to content

Commit 8e6375d

Browse files
committed
fix for removing push
1 parent 7255134 commit 8e6375d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,16 @@ jStat.fn = jStat.prototype = {
4444
for ( var i = 0; i < args[0].length; i++ ) {
4545
this[i] = args[0][i];
4646
}
47+
this.length = args[0].length;
4748
} else {
4849
this[0] = args[0];
50+
this.length = 1;
4951
}
5052

5153
// if first argument is number, assume creation of sequence
5254
} else if ( !isNaN( args[0] )) {
5355
this[0] = jStat.seq.apply( null, args );
56+
this.length = 1;
5457
}
5558
return this;
5659
},

0 commit comments

Comments
 (0)