Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

can-stache-bindings

Package Overview
Dependencies
Maintainers
7
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 3.0.18 to 3.0.19

42

can-stache-bindings.js

@@ -369,10 +369,19 @@ // # can-stache-bindings.js

getterSetter = compute(function(newValue){
getterSetter = compute(function (newValue) {
// jshint eqeqeq: false
if(arguments.length) {
property(newValue ? trueValue : falseValue);
var isSet = arguments.length !== 0;
var isCompute = property && property.isComputed;
if (isCompute) {
if (isSet) {
property(newValue ? trueValue : falseValue);
} else {
return property() == trueValue;
}
} else {
if (isSet) {
// TODO: https://github.com/canjs/can-stache-bindings/issues/180
} else {
return property == trueValue;
}
}
else {
return property() == trueValue;
}
});

@@ -383,15 +392,20 @@ }

// equals the element value
getterSetter = compute(function(newValue){
getterSetter = compute(function (newValue) {
// jshint eqeqeq: false
if(arguments.length) {
if( newValue ) {
var isSet = arguments.length !== 0 && newValue;
var isCompute = property && property.isComputed;
if (isCompute) {
if (isSet) {
property(el.value);
} else {
return property() == el.value;
}
} else {
if (isSet) {
// TODO: https://github.com/canjs/can-stache-bindings/issues/180
} else {
return property == el.value;
}
}
else {
return property() == el.value;
}
});
}

@@ -398,0 +412,0 @@ propName = "$checked";

{
"name": "can-stache-bindings",
"version": "3.0.18",
"version": "3.0.19",
"description": "Default binding syntaxes for can-stache",

@@ -5,0 +5,0 @@ "homepage": "http://canjs.com",

Sorry, the diff of this file is too big to display

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