big refactor looking a lot better now

This commit is contained in:
Peter Cottle 2013-07-28 12:12:00 -07:00
parent e422bdb181
commit 0aadae766f
12 changed files with 1539 additions and 1355 deletions

View file

@ -1732,7 +1732,7 @@ GitEngine.prototype.dispatch = function(command, deferred) {
try {
var methodName = command.get('method').replace(/-/g, '');
Commands[methodName](this, this.command);
Commands.execute(methodName, this, this.command);
} catch (err) {
this.filterError(err);
// short circuit animation by just setting error and returning