Currently, I create objects in javascript by declaring a construction (regular function) then add methods to the prototype like so
function Test(){ } Test.prototype.test1 = function(){ var me = this; }
I'm making a google chrome extension and trying to get reference of a local variable within a closure scope.
// The script model of the target website // I can't change any code ...
Based on my understanding of javascript, prototype methods cannot access variables that are private to the scope of the constructor,
var Foo = function() { var ...