Code Monkey home page Code Monkey logo

Comments (4)

gavinballard avatar gavinballard commented on September 13, 2024

I'm having trouble reproducing this. AFAIK, this isn't something that Cart.js is adding to the data model.

Can you please work out a way to reproduce, or close the issue if it's not something that's causing problems?

from cartjs.

michaelrshannon avatar michaelrshannon commented on September 13, 2024

Hmm - I had seen this on two separate stores before opening the issue (shop.budweiser.ca and an in-development store), so had thought it was unrelated to any project-specific code, but having a look through some of the other built-with stores, I can't see the property appearing. I'll keep an eye out and try and figure out a scenario to reproduce later this week.

from cartjs.

gavinballard avatar gavinballard commented on September 13, 2024

I just checked out the Budweiser site and could see the issue, but looking at your source code I'd say this is the culprit:

<li rv-each-item="cart.items" rv-data-handle="item.handle" rv-data-tags="item.tags">

Trying to access item.tags won't work as the property doesn't exist, but it will cause Rivets to set up an attribute on the target objects in case it does exist in the future :).

from cartjs.

michaelrshannon avatar michaelrshannon commented on September 13, 2024

Doh! Thanks for taking a look - that makes complete sense (and clearly that should have been removed a while ago, since it isn't doing anything useful!)

from cartjs.

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.