@@ -242,7 +242,7 @@ Phaser.Timer.prototype = {
242242 */
243243 add : function ( delay , callback , callbackContext ) {
244244
245- return this . create ( delay , false , 0 , callback , callbackContext , Array . prototype . splice . call ( arguments , 3 ) ) ;
245+ return this . create ( delay , false , 0 , callback , callbackContext , Array . prototype . slice . call ( arguments , 3 ) ) ;
246246
247247 } ,
248248
@@ -264,7 +264,7 @@ Phaser.Timer.prototype = {
264264 */
265265 repeat : function ( delay , repeatCount , callback , callbackContext ) {
266266
267- return this . create ( delay , false , repeatCount , callback , callbackContext , Array . prototype . splice . call ( arguments , 4 ) ) ;
267+ return this . create ( delay , false , repeatCount , callback , callbackContext , Array . prototype . slice . call ( arguments , 4 ) ) ;
268268
269269 } ,
270270
@@ -285,7 +285,7 @@ Phaser.Timer.prototype = {
285285 */
286286 loop : function ( delay , callback , callbackContext ) {
287287
288- return this . create ( delay , true , 0 , callback , callbackContext , Array . prototype . splice . call ( arguments , 3 ) ) ;
288+ return this . create ( delay , true , 0 , callback , callbackContext , Array . prototype . slice . call ( arguments , 3 ) ) ;
289289
290290 } ,
291291
0 commit comments