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
/* The code below takes a constructor and exposes its private functions | |
Useful for unit testing (not general use). An example usage is below it. | |
Access to the private functions available through the _privMems property. */ | |
/* Original credit goes to Rob Gravelle | |
http://www.htmlgoodies.com/beyond/javascript/accessing-private-functions-in-javascript.html */ | |
var Reflection = {}; | |
Reflection.createExposedInstance = function(objectConstructor, args) | |
{ |