title: How can I access widget and its functions from other scopes?
body: <p>I am building custom jquery widgets by extending dialog widget. How can I access widget itself and its functions from button press event function?</p>
  
  <pre><code>$.widget("ui.ImageLibrary", $.ui.dialog, {
     options: {
      title:'Choose Image',
      buttons:{
        "Ok":function(){
          // How can I access _somePrivateFunction here?
        },
        "Close":function(){
          //
        }    
      }
    },
    _somePrivateFunction: function(){
    },
    ...
  </code></pre>