GithubHelp home page GithubHelp logo

Comments (7)

nathanvda avatar nathanvda commented on August 25, 2024

The jquery data method is standard in the latest jqueries, it was added in version 1.4.3. If you check #20, they give the same error, and that was related to active_admin having a hard dependency on jquery 1.4.2 (which is ancient). So are you using active_admin as well?

from cocoon.

kirkbushell avatar kirkbushell commented on August 25, 2024

Yeah - actually we are, but this has nothing to do with the admin. I checked our jquery version - it's 1.7.1. Note that the issue I'm having isn't with the data() method itself (which would throw an error), but what it returns. Also we have other dependencies in the project that require jQuery 1.6+

from cocoon.

nathanvda avatar nathanvda commented on August 25, 2024

Ok, it was just a striking ressemblance. In an older version of active_admin the jquery was vendored. Also note that the .data did not throw a an error, but returned nil, exactly what you describe.

But if you are not using that version of active_admin I am afraid I do not know what could cause the .data() method to refrain from operating correctly.

from cocoon.

kirkbushell avatar kirkbushell commented on August 25, 2024

nathan - hmmm, odd indeed. I'll do some more investigation and see if activeadmin is interfering in another way. I know the right jquery is being loaded but perhaps activeadmin is loading it again elsewhere?

from cocoon.

nathanvda avatar nathanvda commented on August 25, 2024

Do you have any update on this?

from cocoon.

kirkbushell avatar kirkbushell commented on August 25, 2024

Still not sure what was going on. data() method should have been supported and yet it wasn't - yet it works fine for all our custom code =\

from cocoon.

nathanvda avatar nathanvda commented on August 25, 2024

Ok. Not really solved, but as far as I can tell: for now a bit unsolvable. So I close this ticket.

from cocoon.

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.