New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

can-stache-bindings

Package Overview
Dependencies
Maintainers
15
Versions
219
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-stache-bindings - npm Package Compare versions

Comparing version 4.6.4 to 4.6.5

3

can-stache-bindings.js

@@ -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");
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc