Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require("overload").Watchable(
- function(argInfo){
- return typeof(argInfo.property)=='number'
- ? proxiedObj.item(argInfo.property)
- : proxiedObj[argInfo.property];
- }
- ,function(argInfo){return proxiedObj[argInfo.property]=argInfo.value}
- ,function(){return Object.getPropertyNames(proxiedObj)}
- ,function(argInfo){return argInfo.property in proxiedObj}
- ,function(argInfo){proxiedObj[delete argInfo.property]}
- )
Add Comment
Please, Sign In to add comment