Skip to content

Commit

Permalink
Remove partial method from node compatibility file.
Browse files Browse the repository at this point in the history
  • Loading branch information
tbranyen committed Oct 25, 2013
1 parent 411cd5a commit 7925caa
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,38 +57,6 @@ Backbone.Layout.configure({
// Pass the template contents back up.
done(_.template(contents));
});
},

// This is really the only way you will want to partially apply a view into
// a layout. Its entirely possible you'll want to do it differently, so
// this method is available to change.
partial: function($root, $el, rentManager, manager) {
var $filtered;

// If selector is specified, attempt to find it.
if (manager.selector) {
if (rentManager.noel) {
$filtered = $root.filter(manager.selector);
$root = $filtered.length ? $filtered : $root.find(manager.selector);
} else {
$root = $root.find(manager.selector);
}
}

// If no root found, return false.
if (!$root.length) {
return false;
}

// Use the insert method if the parent's `insert` argument is true.
if (rentManager.insert) {
this.insert($root, $el);
} else {
this.html($root, $el);
}

// If successfully added, return true.
return true;
}
});

Expand Down

0 comments on commit 7925caa

Please sign in to comment.