Browse files

replaced the splice(1) (which is not supported in ie<=8) with slice.a…

…pply(arguments, 1).
  • Loading branch information...
1 parent 61378ef commit 7be81ff03f97caad772fb092eea4596ee0b672cf @hughfdjackson hughfdjackson committed Apr 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lucid.js
View
2 lucid.js
@@ -116,7 +116,7 @@
if(typeof event !== 'string' && !Array.isArray(event)) { throw new Error('Cannot bind to event emitter. The passed event is not a string or an array.'); }
//get the arguments
- args = Array.prototype.slice.apply(arguments).splice(1);
+ args = Array.prototype.slice.apply(arguments, 1);
//handle event arrays
if(Array.isArray(event)) {

0 comments on commit 7be81ff

Please sign in to comment.