Skip to content

Instantly share code, notes, and snippets.

@klokan
Created June 25, 2012 08:36
Show Gist options
  • Save klokan/2987404 to your computer and use it in GitHub Desktop.
Save klokan/2987404 to your computer and use it in GitHub Desktop.
// ==ClosureCompiler==
// @compilation_level ADVANCED_OPTIMIZATIONS
// @use_closure_library true
// ==/ClosureCompiler==
/**
* @define {boolean}
*/
ol.API = true;
/**
* @param {Object} opt_arg
* @constructor
* @notypecheck
*/
ol.map = function(opt_arg) {
var param = ol.API ? opt_arg['param'] : opt_arg.param;
window.console.log(param);
}
var map = new ol.map({param:'asdfasdf'});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment