Coder Social home page Coder Social logo

Передача контекста блока внутрь функции для использования this.* about bem-bl HOT 19 CLOSED

belyanskii avatar belyanskii commented on June 25, 2024
Передача контекста блока внутрь функции для использования this.*

from bem-bl.

Comments (19)

indutny avatar indutny commented on June 25, 2024

Should be fixed by #560, could you please verify?

from bem-bl.

belyanskii avatar belyanskii commented on June 25, 2024

@indutny проверил с веткой из PR - в собранном bemhtml.js ничего не поменялось кажется и проблема остается. Если что - код для проверки тут, в bower.json просто можешь свою ветку ставить и смотреть :)

from bem-bl.

indutny avatar indutny commented on June 25, 2024

Это потому что ты используешь bem-bl-xjst, в нем есть своя копия bem-bl. Сейчас сделаю и туда PR.

from bem-bl.

indutny avatar indutny commented on June 25, 2024

bem-archive/bem-bl-xjst#5

from bem-bl.

belyanskii avatar belyanskii commented on June 25, 2024

@indutny - попробовал с bem-bl-xjst из ветки что в PR, тоже ничего не полетело, возможно еще что-нибудь надо поменять? (enb-xjst версию?)

from bem-bl.

indutny avatar indutny commented on June 25, 2024

Все ясно, у тебя теперь там другой пример :) Вопрос же был про чтение из this, а теперь ты туда пишешь и даже вызываешь apply. cc @veged

from bem-bl.

belyanskii avatar belyanskii commented on June 25, 2024

@indutny да, эту проблему тоже обсуждали и казалось что оно связанно

from bem-bl.

veged avatar veged commented on June 25, 2024

там вроде только apply и вызывается? что мешает также сделать как и с чтением из this? если есть apply то прокидывать честный объект

from bem-bl.

indutny avatar indutny commented on June 25, 2024

@veged я придумал как сделать, скоро починим :)

from bem-bl.

belyanskii avatar belyanskii commented on June 25, 2024

@indutny ping :)

from bem-bl.

belyanskii avatar belyanskii commented on June 25, 2024

@indutny pong

from bem-bl.

tadatuta avatar tadatuta commented on June 25, 2024

@indutny Am I right that the fix should also be ported to bem-xjst?

from bem-bl.

indutny avatar indutny commented on June 25, 2024

I'd wait for a whole fix. Right now I have fixed only part of it in these commits and in veged/xjst@e4cffd6 . Going to finish this up tomorrow.

from bem-bl.

indutny avatar indutny commented on June 25, 2024

@belyanskii please give a try to latest: bem-archive/bem-bl-xjst#5

from bem-bl.

belyanskii avatar belyanskii commented on June 25, 2024

@indutny it's working!! brilliant!! @tadatuta, now i need new versions of library's 👍

from bem-bl.

tadatuta avatar tadatuta commented on June 25, 2024

@indutny Fedor, will you release bem-bl-xjst yourself or should I do it while you're on vacation? :)
To do so I just need to know how destructive these changes are: should it be major version or patch will be enough? And should it be ported into support/1.x branch as well?

And what about bem-xjst? Do we need any changes there or weak deps on xjst is just enough?

from bem-bl.

indutny avatar indutny commented on June 25, 2024

@tadatuta I'll do it in a patch version, and yeah it should be ported.

from bem-bl.

indutny avatar indutny commented on June 25, 2024

@belyanskii released in [email protected]

from bem-bl.

indutny avatar indutny commented on June 25, 2024

@tadatuta ah, it seems like support/1.x is not affected, because it isn't using this optimisation.

from bem-bl.

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.