Skip to content

Instantly share code, notes, and snippets.

@eightysteele
Created May 21, 2011 23:05
Show Gist options
  • Select an option

  • Save eightysteele/984983 to your computer and use it in GitHub Desktop.

Select an option

Save eightysteele/984983 to your computer and use it in GitHub Desktop.
var event = new MOL.env.events.LocationEvent({}, 'get-url');
MOL.app.getBus().addHandler(
"LocationEvent",
function(event){
if (event.getAction() == 'take-url') {
alert(event.getLocation().url);
}
}
);
MOL.app.getBus().fireEvent(event);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment