How to escape implicit 'with (this)' of a method body

P T Withington ptw at pobox.com
Mon Jul 28 13:53:51 PDT 2008


function foo () { return 'global'; }

class bar {
   function foo () { return 'local'; }

   function zot () {
     // How can I call the global foo from here?
     without (this) { foo(); }
   }
}





More information about the Es4-discuss mailing list