Permalink
Browse files

remove |name| param from prepareBinding fn

  • Loading branch information...
rafaelw committed Oct 29, 2013
1 parent ed32662 commit 8028ba8b0e93da62258f7c873430c37b184adc24
Showing with 2 additions and 5 deletions.
  1. +1 −1 src/TemplateBinding.js
  2. +1 −4 tests/tests.js
View
@@ -645,7 +645,7 @@
var bindingPath = tokens[1];
if (tokens.hasOnePath) {
var delegateFn = tokens[2];
- var delegateBinding = delegateFn && delegateFn(model, name, node);
+ var delegateBinding = delegateFn && delegateFn(model, node);
if (delegateBinding !== undefined) {
bindingModel = delegateBinding;
View
@@ -1902,7 +1902,6 @@ suite('Binding Delegate API', function() {
var bindFnBindData = {
type: 'bindFn',
model: model,
- name: 'bind',
nodeType: Node.ELEMENT_NODE,
tagName: 'TEMPLATE'
};
@@ -1916,7 +1915,6 @@ suite('Binding Delegate API', function() {
var bindFnTextContentData = {
type: 'bindFn',
model: model,
- name: 'textContent',
nodeType: Node.TEXT_NODE,
tagName: undefined
};
@@ -1942,12 +1940,11 @@ suite('Binding Delegate API', function() {
assert.strictEqual(data.nodeType, node.nodeType);
assert.strictEqual(data.tagName, node.tagName);
- return function(model, name, node) {
+ return function(model, node) {
var data = testData.shift();
assert.strictEqual(data.type, 'bindFn');
assert.strictEqual(data.model, model);
- assert.strictEqual(data.name, name);
assert.strictEqual(data.nodeType, node.nodeType);
assert.strictEqual(data.tagName, node.tagName);
}

0 comments on commit 8028ba8

Please sign in to comment.