Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove partial method from node compatibility file.

  • Loading branch information...
commit 7925caaec834f824a3cb4ed18a1a6229b064ef1c 1 parent 411cd5a
@tbranyen authored
Showing with 0 additions and 32 deletions.
  1. +0 −32 node/index.js
View
32 node/index.js
@@ -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;
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.