I'm using django-pipeline and the compressor wraps each js module in an anonymous function for global namespace safety. This obscures OSMBuildings. Exposing OSMBuildings to the window global would alleviate this. I simply added window.OSMBuildings = OSMBuildings; to the end of OSMBuildings-Leaflet.debug.js to work around this.
I'm using django-pipeline and the compressor wraps each js module in an anonymous function for global namespace safety. This obscures OSMBuildings. Exposing OSMBuildings to the window global would alleviate this. I simply added
window.OSMBuildings = OSMBuildings;
to the end of OSMBuildings-Leaflet.debug.js to work around this.