Created
June 9, 2010 23:10
-
-
Save bmeck/432332 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment