var RPGConfig = (function() {
    var Constructor = function() {
        this.dir = "js";
        this.enginedir = "js/Engine";
    };
    Constructor.prototype = {
        include: [
            this.dir + "/Common.js",
            this.dir + "/Common/Class.js"
        ],
        test: function() {
            alert(this.dir);
        }
    };
    return Constructor;
})();
rpgConfig = new RPGConfig();
rpgConfig.test();
console.log(rpgConfig.include);
So, if I run rpgConfig.test(), the alert pops up with "js". Great! But, my rpgConfig.include shows up with "undefined" where this.dir should have printed "js" (as it did in test())...
So, how do I add "this" scope into an array literal?
Thanks
 
     
    