Skip to content

Instantly share code, notes, and snippets.

@zuk
Created March 16, 2012 18:20
Show Gist options
  • Select an option

  • Save zuk/2051631 to your computer and use it in GitHub Desktop.

Select an option

Save zuk/2051631 to your computer and use it in GitHub Desktop.
jQuery(veos).bind('gmaps.ready', function() {
/* dependent code goes here */
});
/* veos.gmaps.js */
window.veos = (function(veos) {
var self = {};
/* gmaps funcitonality goes here */
/* this binds it under the veos.gmaps module namespace */
veos.model = self;
return veos;
})(window.veos || {});
/* notify veos */
jQuery(veos).trigger('gmaps.ready');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment