Is it possible to postpone the value of a property but use it before?
<p>Is it possible to do something like this:</p>

<pre><code>var oHelper = {
  ref: null,
  data: {"key":"value"}
}
var oSettingsThing = {
  data: oHelper.ref,
  //....
}

//....some lines before or in other file loaded after
$(document).ready(function() {
  oHelper.ref = doDataStuff( oHelper.data );
  var thing = Framework.crate('module.thing', oSettingsThing );
}
</code></pre>

<p>My purpose is to keep <code>$(document).ready(function(){</code> as clean as possible, and if it's possible, to separate both blocks in separated files.</p>

<p>I thought that as in variable copying in setting properties values the copy by reference will help me, but I was wrong and on <code>Framework.crate('module.thing', oSettingsThing );</code> the value of <code>oHelper.ref</code>is still <code>null</code>.</p>

<p>What do not I understand?</p>

<p>I'm using ExtJs and the objects structure it's quite more complex:</p>

<pre><code>var oHelper = {
  ref: null,
  data: {"key":"value"}
}
//....
var oSettingsThing = {
GENERALS:{
    //..
    items: [
        {
            items: [
                {
                    //....
                    store: oHelper.ref,
                }
//.... 
Ext.onReady(function() {

  mc_documentos.stores.STATUS.ref = new Ext.data.SimpleStore(mc_documentos.stores.STATUS.data );
  //I was hopping to at this point have oSettingsThing.GENERALS...data !== null
  var generalsFilters= Ext.create('Ext.form.Panel', oSettingsThing.GENERALS );
</code></pre>
