Skip to content

Instantly share code, notes, and snippets.

@ericf
Created April 29, 2011 21:42
Show Gist options
  • Select an option

  • Save ericf/949090 to your computer and use it in GitHub Desktop.

Select an option

Save ericf/949090 to your computer and use it in GitHub Desktop.
// Google Map
YUI.Env.DBD || (YUI.Env.DBD = {});
YUI.Env.DBD[Y.stamp(this, true)] = { map: Y.bind(this.useComponent, this, 'map') };
Y.Get.script(sub(Y.DBD.App.GOOGLE_MAPS_URL, { id : Y.stamp(this, true) }));
// Statically defined:
GOOGLE_MAPS_URL : 'http://maps.google.com/maps/api/js?sensor=false&callback=YUI.Env.DBD.{id}.map',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment