[OpenLayers-Users] OL object as an IIFE argument

Tondo gpktondo at gmail.com
Mon Nov 26 05:26:22 PST 2012


Hi lists,

There are two script links on my page:
/
/

I have classic module pattern:
/console.log(OpenLayers); //Object
var MAP = ( function (ol) {
   console.log(OpenLayers); //Object
   ---body---
   return Object.seal({
      console.log(OpenLayers); //Object
      ---object---
   });
}(OpenLayers)); //Uncaught ReferenceError: OpenLayers is not defined
console.log(OpenLayers); //Object/

Am I missing something obvious here?

Thanks,
Tom



--
View this message in context: http://osgeo-org.1560.n6.nabble.com/OL-object-as-an-IIFE-argument-tp5018762.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list