creating new object from with the init function of another object
<p>Inside the init function of an object I'm creating I want to create a new instance of another object.</p>

<p>At the moment my init code looks like this:</p>

<pre><code>    var myObj = {

getData: function(){

      var instance = this;

      // Display preloader gif
      instance.selectors.preloader.fadeIn();

      // Make call for appropriate data */
      dataManager.feed.get( function(data){

        for( var i = 0, len = data.feed.length; i &lt; len; i++ ){

          var template = '';

        }
      }, window, null, '' );

      instance.displayVideos();

    },

    init: function(){

          var instance = this;

          // Create new DataManager object
          var dataManager = new DataManager();
    }



    }
</code></pre>

<p>myObj.init();</p>

<p>My problem is that I get an error telling me that DataManager is not defined, can anyone explain how I reference this object?</p>
