Saturday, 15 May 2010

javascript - What is the Windows 8 Application equivalent of "window."? -



javascript - What is the Windows 8 Application equivalent of "window."? -

when developing windows 8 apps in javascript , html, equivalent global variable traditionally window.

from method within object on 1 page need access method within object stored in separate js file. object called searchall , method '_clearinput'. illustration want phone call window.searchall.clearinput. `searchall' object wrapped in anonymous function.

how do this? or wrong way of approaching it?

if global, treat such:

searchall.xxx()

just don't mask in narrower scope var searchall or function (searchall) { }

javascript windows-8

No comments:

Post a Comment