Support for negative numbers in computed bindings

This commit is contained in:
Nazar Mokrynskyi
2015-08-17 02:06:30 +02:00
parent a42ca09c3b
commit fc53f50c3e
3 changed files with 11 additions and 2 deletions

View File

@@ -11,6 +11,7 @@
computed-inline2="{{computeInline(value, add,divide)}}"
computedattribute$="{{computeInline(value, add,divide)}}"
neg-computed-inline="{{!computeInline(value,add,divide)}}"
computed-negative-number="{{computeNegativeNumber(-1)}}"
style$="{{boundStyle}}"
data-id$="{{dataSetId}}"
custom-event-value="{{customEventValue::custom}}"
@@ -232,6 +233,9 @@
},
computeFromNoArgs: function() {
return 'no args!';
},
computeNegativeNumber: function (num) {
return num;
}
});
</script>