Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Clear up the if/else.
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeaun committed Feb 21, 2009
1 parent ea3653a commit 6c1a1d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/MooEditable/MooEditable.js
Expand Up @@ -267,8 +267,8 @@ var MooEditable = new Class({
action: function(command){
var action = MooEditable.Actions[command];
var args = action.arguments || [];
if (action.command){
($type(action.command) == 'function') ? action.command.attempt(args, this) : this.execute(action.command, false, args);
if (action.command && $type(action.command) == 'function'){
action.command.attempt(args, this);
} else {
this.execute(command, false, args);
}
Expand Down

0 comments on commit 6c1a1d2

Please sign in to comment.