can-stache-bindings
Advanced tools
Comparing version 3.0.18 to 3.0.19
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
152002
3278