Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
remove |name| param from prepareBinding fn
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelw committed Oct 29, 2013
1 parent ed32662 commit 8028ba8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/TemplateBinding.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 1 addition & 4 deletions tests/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -1902,7 +1902,6 @@ suite('Binding Delegate API', function() {
var bindFnBindData = {
type: 'bindFn',
model: model,
name: 'bind',
nodeType: Node.ELEMENT_NODE,
tagName: 'TEMPLATE'
};
Expand All @@ -1916,7 +1915,6 @@ suite('Binding Delegate API', function() {
var bindFnTextContentData = {
type: 'bindFn',
model: model,
name: 'textContent',
nodeType: Node.TEXT_NODE,
tagName: undefined
};
Expand All @@ -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);
}
Expand Down

0 comments on commit 8028ba8

Please sign in to comment.