Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove |name| param from prepareBinding fn

  • Loading branch information...
commit 8028ba8b0e93da62258f7c873430c37b184adc24 1 parent ed32662
@rafaelw rafaelw authored
Showing with 2 additions and 5 deletions.
  1. +1 −1  src/TemplateBinding.js
  2. +1 −4 tests/tests.js
View
2  src/TemplateBinding.js
@@ -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
5 tests/tests.js
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.