Skip to content

Instantly share code, notes, and snippets.

@hughfdjackson
Created February 26, 2012 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hughfdjackson/1918471 to your computer and use it in GitHub Desktop.
Save hughfdjackson/1918471 to your computer and use it in GitHub Desktop.
void function(root){
function georender(can, obj){
renderFunctions[obj.type](can,obj);
}
var renderFunctions = georender.fn = {
// handle actual rendering here
point: function(can, obj){},
circle: function(can, obj{},
poly: function(can, obj){}
};
// export georender
root['georender'] = georender
}(this)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment