Skip to content

Commit

Permalink
Remove unnecessary _.result
Browse files Browse the repository at this point in the history
  • Loading branch information
jridgewell committed Dec 14, 2014
1 parent 17f1eb5 commit 76cbf49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/view.js
Expand Up @@ -88,7 +88,7 @@ Minionette.View = Backbone.View.extend({
} else {
// If view is a selector, find the DOM element
// that matches it.
options.selector = _.result(view, 'selector') || view;
options.selector = view.selector || view;
options.el = this.$(view);
}

Expand Down

0 comments on commit 76cbf49

Please sign in to comment.