Skip to content
This repository has been archived by the owner on Sep 18, 2018. It is now read-only.

Commit

Permalink
Fall back properly in Action.addToArgs if no args argument is passed …
Browse files Browse the repository at this point in the history
…in. Thanks to slyf for finding this issue.
  • Loading branch information
chromakode committed Apr 6, 2011
1 parent d2f4b7e commit 93b7872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/utils/action/action.jsm
Expand Up @@ -64,7 +64,7 @@ ActionType.prototype = {

addToArgs: function(args) {
// Arguments contain the arguments passed to this function, with this action object at the end.
var newargs = Array.prototype.splice.call(args, 0) || [];
var newargs = args ? Array.prototype.splice.call(args, 0) : [];
if ((newargs.length == 0) || (newargs[newargs.length-1] != this)) {
newargs.push(this);
}
Expand Down

0 comments on commit 93b7872

Please sign in to comment.