Quote
var map = new FusionMaps(this.fusionmapPath + mapInfo.swf, mapInfo.swf, mapInfo.width, mapInfo.height, this.debug, "0");
map.setDataURL( {dataurl} );
map.render(this.body.dom);
map.newFunction = function( data ) {
console.log("This is my data", data);
}
if I do a basic log in FF I get Window to be this and the scope of the object.
Quote
< entity id="AL" value="1270" link="JavaScript:console.log(this, 'AL', 'Alabama', 'AL', 'Tuscaloosa County');">
My question is:
Is there any way to change the scope of this to be something else when the Javascript is called?

Back to top
MultiQuote