Coder Social home page Coder Social logo

Comments (6)

joliss avatar joliss commented on June 27, 2024

I'm not sure what a good solution is for that. Can you ask on Stackoverflow please?

from jquery-ui-rails.

joliss avatar joliss commented on June 27, 2024

Oh, and post a link to your SO question here please - I'm curious too!

from jquery-ui-rails.

dlee avatar dlee commented on June 27, 2024

@joliss I'm not sure what you're asking for. I'm reporting a flaw in the way jquery-ui-rails functions. A good solution is to not autoload dependencies. When I put:

// = require jquery.ui.autocomplete

It should only load the code for autocomplete and not drag in jquery with it.

from jquery-ui-rails.

dlee avatar dlee commented on June 27, 2024

To be more explicit about my proposal, we should remove the following lines from jquery.ui.autocomplete.js:

//= require jquery.ui.core
//= require jquery.ui.widget
//= require jquery.ui.position

from jquery-ui-rails.

joliss avatar joliss commented on June 27, 2024

That's the way it should be, I'm afraid. Dependency management is the whole point jQuery UI Rails (and much of the reason we use Sprockets for that matter).

You can stub out dependencies with Sprockets - https://github.com/sstephenson/sprockets#the-stub-directive - but I honestly don't recommend going down that route.

from jquery-ui-rails.

dlee avatar dlee commented on June 27, 2024

Actually, that's exactly what I was going to comment on. Stubs are exactly what I'm looking for. Unfortunately, stable Rails (3.2.8) don't support sprockets 2.2, so I had to fork my own version of Rails just to get sprockets 2.2 going.

Thanks!

from jquery-ui-rails.

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.