Giter VIP home page Giter VIP logo

Comments (8)

vitkarpov avatar vitkarpov commented on August 11, 2024

@iamakulov

likely.initiate(article.querySelector('.likely'))

Actually, this doesn't make sense. likely.initiate initiates all buttons on the page, and accepts options, not a link to node.

Instead of, seems likely(article.querySelector('.likely')) is the proper way, assuming article.querySelector('.likely') returns single node inside a new article, exactly the node where likely should be initialized.

However, the code likely.initiate() actually finds all new widgets, and updates an old ones. So apparently there's a problem with updating existing widget.

I'll try to find the latter out, and Tinkoff's guys can change likely.initiate to just likely(node), `cause it's the right way anyway.

from likely.

iamakulov avatar iamakulov commented on August 11, 2024

I’ve asked folks to replace likely.initate(node) with likely.initiate(), this didn’t help. So yep, looks like an issue in our code.

I'll try to find the latter out, and Tinkoff's guys can change likely.initiate to just likely(node), `cause it's the right way anyway.

Good option, will suggest. Thank you!

from likely.

vitkarpov avatar vitkarpov commented on August 11, 2024

likely.initate(node) with likely.initiate()

yep, as this didn't change anything we have a bug with updating existing widgets

from likely.

vitkarpov avatar vitkarpov commented on August 11, 2024

Reproduced the following case:

  • load the test page
  • perform likely.initiate() in console
  • counters vanished

I think this should be separated into its issue

from likely.

vitkarpov avatar vitkarpov commented on August 11, 2024

#83

from likely.

vitkarpov avatar vitkarpov commented on August 11, 2024

@iamakulov as #83 will be fixed, I believe fellows can perform likely.initiate, as they already do: the new widgets should be initialized and the old ones be not broken.

from likely.

iamakulov avatar iamakulov commented on August 11, 2024

Wow, the reproduced case seems to be related to #75, I’ve seen something similar there. Probably it’s even a single bug.

from likely.

iamakulov avatar iamakulov commented on August 11, 2024

Closed in #84.

from likely.

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.