Created
August 27, 2019 21:13
-
-
Save debugmodedotnet/f9ffc6f1882e9e88a0275974e53e1503 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
function addToScope(){ | |
if(!dbrepo.hasOwnProperty(bindingProperty)){ | |
let value; | |
Object.defineProperty(dbrepo,bindingProperty,{ | |
configurable:true, | |
enumerable:true , | |
set: function(newvalue){ | |
value = newvalue; | |
}, | |
get:function(){ | |
return value; | |
} | |
}) | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment