discourse-data-explorer/assets/javascripts/discourse/components/param-field.js.es6

9 lines
247 B
Plaintext
Raw Normal View History

2015-06-30 18:12:12 -04:00
export default Ember.TextField.extend({
value: function(key, value, previousValue) {
if (arguments.length > 1) {
this.get('params')[this.get('pname')] = value;
}
return this.get('params')[this.get('pname')];
}.property()
});