cyberdelia/django-pipeline — Issue #69: Uncaught ReferenceError: xxx is not defined
Author: krokodile
Created: 2012-01-19 05:50:50+00:00
State: open

We have following js structure - all js are loaded to user at once, except page-specific initializers ( e.g. init.main.js , init.subscription.js, init.product_list.js ). So usual structure looks like :

{% compressed_js 'all' %}

init.product_list.js tries to call functions from 'all', but cannot do it, as compressed_js encapsulates everything inside

(function($){...}).call(this)

Demonstration - http://jsfiddle.net/TwSqe/7/

Is it possible to solve this issue without modifying code ?