Giter Site home page Giter Site logo

Comments (7)

mattberkowitz avatar mattberkowitz commented on August 18, 2024

I'm not able to replicate this, although I have seen it before. I added code in 0.5.0 which should have stopped it, I added code that removed the event before adding it so that it would get bound multiple times.

What settings do you have checked? What other modules have you added? I first saw this bug when I started working on another module with a similar event setup that was making autoclose-html bind it's event twice.

from autoclose-html.

yuchi avatar yuchi commented on August 18, 2024

I’m pretty sure this is a double event binding. The module has ‘started twice’.

from autoclose-html.

mattberkowitz avatar mattberkowitz commented on August 18, 2024

@yuchi,
There was no question that that's what's happening. The issue is why. In 0.5.0, I changed the code where the event is bound to:

editorView.editor.buffer.off('changed',fcn);
editorView.editor.buffer.on('changed', fcn);

This should prevent the event from ever being bound a 2nd time

from autoclose-html.

yuchi avatar yuchi commented on August 18, 2024

If fcn is another function then that .off will never work, of course. What I think is that the culprit is the dev-reload of plugins. You could try to log something in the closure which creates fcn. I think it is executed twice. IMHO.

from autoclose-html.

mattberkowitz avatar mattberkowitz commented on August 18, 2024

I was able to reproduce by spamming the "Close on end of opening tag option." If you reopen ember, or ctrl+opt+cmd+L to reset it should resolve the problem for now. I'll fix it in code in the next release

from autoclose-html.

mattberkowitz avatar mattberkowitz commented on August 18, 2024

Sorry for taking so long for a proper fix to this. I just released 0.6.0 which includes a fix for this issue. Please let me know if you still encounter problems

from autoclose-html.

dushaun avatar dushaun commented on August 18, 2024

Hi There,

Using Atom 1.0.2 with autoclose-html 0.18.0 and I've suddenly come across the doubling up again. Was the Error truly fixed?

screen shot 2015-07-23 at 15 13 50

from autoclose-html.

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.