mirror of
				https://github.com/skishore/makemeahanzi.git
				synced 2025-10-31 02:45:49 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			287 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			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);
 | |
| }
 | 
