Merge pull request #5 from omphalos/defineProperty
Use Object.defineProperty not __defineGetter__
This commit is contained in:
		
						commit
						a13644945f
					
				| @ -88,8 +88,10 @@ | |||||||
|     return Object.keys(this)[i]; |     return Object.keys(this)[i]; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   Storage.prototype.__defineGetter__('length', function () { |   Object.defineProperty(Storage.prototype, 'length', { | ||||||
|     return Object.keys(this).length; |     get: function() { | ||||||
|  |       return Object.keys(this).length; | ||||||
|  |     } | ||||||
|   }); |   }); | ||||||
| 
 | 
 | ||||||
|   Storage.prototype.___save___ = function () { |   Storage.prototype.___save___ = function () { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user