Skip to content

Instantly share code, notes, and snippets.



Created Nov 13, 2013
What would you like to do?
async plugin specifically for google maps. example: require(["plugins/async!"], function () {// can use google.maps now});
* Dojo AMD Google Maps Loader Plugin
], function (kernel, topic) {
var w =;
var cb ="_googleApiLoadCallback";
return {
load: function (param, req, loadCallback) {
if (!cb) return;
w[cb] = function () {
delete w[cb];
cb = null;
require([param + "&callback=" + cb]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.