Files
2016-02-07 16:25:15 -05:00

14 lines
287 B
JavaScript

// Simple helpers for interacting with reactive variables.
ReactiveVar.prototype.pop = function() {
const value = this.get();
value.pop();
this.set(value);
}
ReactiveVar.prototype.push = function(element) {
const value = this.get();
value.push(element);
this.set(value);
}