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

9 lines
264 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')];
2015-06-30 22:51:38 -04:00
}.property('params', 'pname')
2015-06-30 18:12:12 -04:00
});