From d6e9b6a9626e717e4652e36635621646a6c93c01 Mon Sep 17 00:00:00 2001 From: Peter Cottle Date: Thu, 3 Jan 2013 15:05:08 -0800 Subject: [PATCH] fixedsubtlely in rebase --- build/bundle.js | 4 ++-- src/js/views/rebaseView.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/bundle.js b/build/bundle.js index d9fa8885..dc40b8d4 100644 --- a/build/bundle.js +++ b/build/bundle.js @@ -8857,6 +8857,7 @@ var InteractiveRebaseView = ContainedBase.extend({ this.entryObjMap = {}; this.rebaseEntries = new RebaseEntryCollection(); + options.toRebase.reverse(); _.each(options.toRebase, function(commit) { var id = commit.get('id'); this.rebaseMap[id] = commit; @@ -8895,7 +8896,6 @@ var InteractiveRebaseView = ContainedBase.extend({ } }, this); - toRebase.reverse(); this.deferred.resolve(toRebase); // garbage collection will get us this.$el.html(''); @@ -19130,6 +19130,7 @@ var InteractiveRebaseView = ContainedBase.extend({ this.entryObjMap = {}; this.rebaseEntries = new RebaseEntryCollection(); + options.toRebase.reverse(); _.each(options.toRebase, function(commit) { var id = commit.get('id'); this.rebaseMap[id] = commit; @@ -19168,7 +19169,6 @@ var InteractiveRebaseView = ContainedBase.extend({ } }, this); - toRebase.reverse(); this.deferred.resolve(toRebase); // garbage collection will get us this.$el.html(''); diff --git a/src/js/views/rebaseView.js b/src/js/views/rebaseView.js index aa66dd00..e1c357cb 100644 --- a/src/js/views/rebaseView.js +++ b/src/js/views/rebaseView.js @@ -19,6 +19,7 @@ var InteractiveRebaseView = ContainedBase.extend({ this.entryObjMap = {}; this.rebaseEntries = new RebaseEntryCollection(); + options.toRebase.reverse(); _.each(options.toRebase, function(commit) { var id = commit.get('id'); this.rebaseMap[id] = commit; @@ -57,7 +58,6 @@ var InteractiveRebaseView = ContainedBase.extend({ } }, this); - toRebase.reverse(); this.deferred.resolve(toRebase); // garbage collection will get us this.$el.html('');