Skip to content
Browse files

extract var for readability

  • Loading branch information...
1 parent 1a6e42b commit adb536d1289a165bcf33c076618e6ee529436405 @derickbailey derickbailey committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/marionette.compositeview.js
View
3 src/marionette.compositeview.js
@@ -112,7 +112,8 @@ Marionette.CompositeView = Marionette.CollectionView.extend({
var container;
if (containerView.itemViewContainer){
- container = containerView.$(_.result(containerView, "itemViewContainer"));
+ var selector = _.result(containerView, "itemViewContainer");
+ container = containerView.$(selector);
if (container.length <= 0) {
var err = new Error("The specified `itemViewContainer` was not found: " + containerView.itemViewContainer);
err.name = "ItemViewContainerMissingError";

0 comments on commit adb536d

Please sign in to comment.
Something went wrong with that request. Please try again.