can-stache-bindings
Advanced tools
Comparing version 4.6.4 to 4.6.5
@@ -917,3 +917,4 @@ "use strict"; | ||
cycles: childToParent === true && parentToChild === true ? 0 : 100, | ||
onInitDoNotUpdateChild: bindingData.alreadyUpdatedChild, | ||
onInitDoNotUpdateChild: bindingData.alreadyUpdatedChild || bindingInfo.initializeValues === false, | ||
onInitDoNotUpdateParent: bindingInfo.initializeValues === false, | ||
onInitSetUndefinedParentIfChildIsDefined: true, | ||
@@ -920,0 +921,0 @@ parent: parentObservable, |
{ | ||
"name": "can-stache-bindings", | ||
"version": "4.6.4", | ||
"version": "4.6.5", | ||
"description": "Default binding syntaxes for can-stache", | ||
@@ -35,4 +35,4 @@ "homepage": "https://canjs.com/doc/can-stache-bindings.html", | ||
"can-attribute-encoder": "^1.1.1", | ||
"can-attribute-observable": "<2.0.0", | ||
"can-bind": "^1.1.0", | ||
"can-attribute-observable": "^1.2.0", | ||
"can-bind": "^1.3.0", | ||
"can-dom-data-state": "^1.0.0", | ||
@@ -39,0 +39,0 @@ "can-dom-events": "^1.1.1", |
@@ -21,3 +21,3 @@ var QUnit = require('steal-qunit'); | ||
testHelpers.makeTests("can-stache-bindings - colon - event", function(name, doc, enableMO){ | ||
testHelpers.makeTests("can-stache-bindings - colon - event", function(name, doc, enableMO, testIfRealDocument){ | ||
@@ -595,2 +595,19 @@ QUnit.test("on:enter", function () { | ||
}); | ||
testIfRealDocument("on:click:value:to on button (#484)", function() { | ||
var template = stache("<button value='2' on:click:value:to='myProp'>Default Args</button>"); | ||
var map = new SimpleMap({ | ||
myProp: 1 | ||
}); | ||
var frag = template(map); | ||
var button = frag.firstChild; | ||
QUnit.equal(map.get('myProp'), 1, "initial value"); | ||
domEvents.dispatch(button, "click"); | ||
QUnit.equal(map.get('myProp'), 2, "set from value"); | ||
}); | ||
}); |
177981
3891
Updatedcan-bind@^1.3.0