Giter VIP home page Giter VIP logo

btabs's Issues

所有标签删除后的bug

若所有标签允许删除,将所有标签删除后,再多次点击重复的菜单项,标签会重复生成,而非跳转到已有。
这是因为源码的139行有个else:openTabs = new Array();
当控件的openTabs数组为空时,就会跳转到这一行来。
然而,这一行中的openTabs原本是指向控件的this.openTabs,在这里直接new了一个Array,会导致openTabs不再指向this.openTabs,而是一个新的Array。所以,后续对openTabs所做的修改,不会再影响到控件的this.openTabs,就导致了这个bug。
只要将这一行else后的代码改为:
openTabs = this.openTabs = new Array();
即可。

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.