Skip to content

Commit

Permalink
Cleaned up addObject method logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Crowhurst committed Mar 21, 2013
1 parent 38c1e69 commit d2d94c2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions source/static/script/controller/searchResults.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
Application.SearchResultsController = Ember.ArrayController.extend({
addObject: function(obj) {
if (this.content.length == 0) {
this.set('content', [obj]);
} else {
this.get('content').push(obj);
}
addObject: function(object) {
this.set('content', [object]);
}
});

0 comments on commit d2d94c2

Please sign in to comment.