Code Monkey home page Code Monkey logo

Comments (14)

zewa666 avatar zewa666 commented on August 20, 2024

ok I can't actually replicate the issue but have talked to @jdanyow to update aurelia-plunker to include it so you can easily create a sample. Stay tuned will reply here once its updated

from i18n.

jdanyow avatar jdanyow commented on August 20, 2024

@valichek / @zewa666 sorry for the delay- the plunker has been updated with the latest aurelia bits and now includes the aurelia-i18n plugin.

http://bit.ly/aurelia-plunker

from i18n.

sternert avatar sternert commented on August 20, 2024

I have the same issue, I have trouble to pinpoint where the actual problem is and are thus unable to show it in plunkr.

    Unhandled promise rejection TypeError: Cannot read property 'dispose' of undefined
        at TCustomAttribute.unbind (http://localhost:1111/jspm_packages/github/aurelia/[email protected]/t.js?bust=1448609338856:118:26)
        at Controller.unbind (http://localhost:1111/jspm_packages/github/aurelia/[email protected]/aurelia-templating.js?bust=1448609338856:2724:20)
        at View.unbind (http://localhost:1111/jspm_packages/github/aurelia/[email protected]/aurelia-templating.js?bust=1448609338856:841:26)
        at ViewSlot.unbind (http://localhost:1111/jspm_packages/github/aurelia/[email protected]/aurelia-templating.js?bust=1448609338856:1137:21)
        at View.unbind (http://localhost:1111/jspm_packages/github/aurelia/[email protected]/aurelia-templating.js?bust=1448609338856:846:23)
        at ViewFactory.returnViewToCache (http://localhost:1111/jspm_packages/github/aurelia/[email protected]/aurelia-templating.js?bust=1448609338856:1731:14)
        at View.returnToCache (http://localhost:1111/jspm_packages/github/aurelia/[email protected]/aurelia-templating.js?bust=1448609338856:753:24)
        at removeAction (http://localhost:1111/jspm_packages/github/aurelia/[email protected]/aurelia-templating.js?bust=1448609338856:1246:25)
        at ViewSlot.removeAll (http://localhost:1111/jspm_packages/github/aurelia/[email protected]/aurelia-templating.js?bust=1448609338856:1259:7)
        at http://localhost:1111/jspm_packages/github/aurelia/[email protected]/aurelia-templating.js?bust=1448609338856:3653:53(anonymous function) @ :1111/jspm_packages/npm/[email protected]/modules/es6.promise.js?bust=1448609338856:122
    :1111/jspm_packages/npm/[email protected]/modules/es6.promise.js?bust=1448609338856:122 Unhandled promise rejection TypeError: Cannot read property 'dispose' of undefined(…)(anonymous function) @ :1111/jspm_packages/npm/[email protected]/modules/es6.promise.js?bust=1448609338856:122

from i18n.

zewa666 avatar zewa666 commented on August 20, 2024

hey we currently have weird issues with the show.binding if used together with the animator-css. May I ask you guys to test if the error still happens if you remove the animator-css plugin?

from i18n.

valichek avatar valichek commented on August 20, 2024

I have aurelia-animator-css plugin disabled

from i18n.

zewa666 avatar zewa666 commented on August 20, 2024

sry I seem to be doing something wrong, still can't replicate the issue. @valichek may I ask you to use the updated aurelia plunker to create an example depicting the issue?

from i18n.

valichek avatar valichek commented on August 20, 2024

@zewa666 will try

from i18n.

jdanyow avatar jdanyow commented on August 20, 2024

I wonder if there's a scenario where bind then unbind is called in the same task queue flush. If that were to happen, unbind would be called before this line is evaluated.

Maybe this could be reproduced by putting a t custom attribute on a element that has if.bind="show" and then executing this.show = !this.show a few times in the view-model.

It might be good to clear these timeouts in unbind:

Otherwise there is the potential for the deferred binding code to execute after unbind is called.

from i18n.

Mordred avatar Mordred commented on August 20, 2024

Any progress with this? You should clear these timeouts during unbind and run dispose() of subscription only if really subscribed.

from i18n.

zewa666 avatar zewa666 commented on August 20, 2024

@EisenbergEffect could you create a new release and @valichek check it afterwards? I guess @Mordred's PR should fix that

from i18n.

EisenbergEffect avatar EisenbergEffect commented on August 20, 2024

We will have some new releases this week. Hopefully tomorrow or Wednesday. I'm waiting on a couple of final things to come in so we can aggregate the patches and release details.

from i18n.

zewa666 avatar zewa666 commented on August 20, 2024

@valichek has this been fixed with the recent release?

from i18n.

valichek avatar valichek commented on August 20, 2024

yes, error is gone

from i18n.

zewa666 avatar zewa666 commented on August 20, 2024

Allrighty 👍

from i18n.

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.