title: Javascript, can I pass a reference to a current object to function within an object literal definition?
body: <p>Good Morning,</p>
  
  <p>I have a function that takes an options hash as it's parameter, can I call that function inside an object literal definition? Like this</p>
  
  <pre><code> function dataCallback(opts) {
  
      var rowSelector = opts['id'] + ' .gridContent';
      var liSelector = opts['id'] + ' li';
  
      return function(args) { //do something with opts... 
                return; 
      }
      //omitted...
  
  } 
  
  var obj = { x : {id = '#someId1', callback: dataCallback(//what can I pass here? this? x? obj.x? nothing seems to work...)}
             , y : {id = '#someId2', callback: dataCallback(///???, this? y? obj.y?)}  };
  </code></pre>
  
  <p>I hope my question makes sense.  Perhaps I worded it incorrectly in the title. Anyways, if someone can straighten me out here I would truly appreciate it.  Thanks for any tips or tricks.</p>
  
  <p>Cheers,<br>
  ~ck in San Diego </p>