Giter Site home page Giter Site logo

Comments (4)

cyberdelia avatar cyberdelia commented on August 22, 2024

Without modifying code, just add init.product_list.js in your 'all' group.
Or declare your function as global when needed.

from django-pipeline.

krokodile avatar krokodile commented on August 22, 2024

init.product_list.js - is specific for 'products' page, other pages have it's own initializers( init.offers.js for example ), so it's impossible to add init.* functions to 'all' group.

My point is - (function($){...}).call(this) - can damage working code ( which works without PIPELINE=True ). Why it's needed and hard coded? I suppose it should be possible to disable such behavior in settings.

from django-pipeline.

cyberdelia avatar cyberdelia commented on August 22, 2024

This is for performance, avoiding unexplicit globals : http://dev.opera.com/articles/view/efficient-javascript/?page=2#avoidglobal

from django-pipeline.

cyberdelia avatar cyberdelia commented on August 22, 2024

I will add documentation about this, see #73.

from django-pipeline.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.