mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
Support for negative numbers in computed bindings
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user