Created
August 27, 2019 21:13
-
-
Save debugmodedotnet/9c272d3b433875167dc8281f2a1ff44c 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