Skip to content

Instantly share code, notes, and snippets.

@RicSwirrl
Created September 28, 2011 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RicSwirrl/1247903 to your computer and use it in GitHub Desktop.
Save RicSwirrl/1247903 to your computer and use it in GitHub Desktop.
Handle the boundaryDataRetrieved and DataError events in the constructor
$(this).bind('boundaryDataRetrieved', function() {
refreshPolygons();
});
$(this).bind('dataError', function() {
$(this).trigger('finished'); // tell people we're done
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment