2

我使用角带+角动画(角运动)创建了几个工具提示。最初他们正在工作,因为所有这些都显示在悬停上。但是,当快速将鼠标悬停在任何工具提示上时,它们会冻结并卡在左上角。

nav(id="menubarContainer")

    ul
        li(bs-tooltip="tooltip.home"  data-placement="bottom")
            i(class="fa fa-home fa-2x" ui-sref="home")

        li(bs-tooltip="tooltip.create" data-placement="bottom-left")
            i(class="fa fa-plus fa-2x")

        li(bs-tooltip="tooltip.settings" data-placement="bottom-left")
            i(class="fa fa-cog fa-2x")

        li(bs-tooltip="tooltip.help" data-placement="bottom-left")
            i(class="fa fa-question-circle fa-2x")

chrome shoes 这个错误:Uncaught TypeError: Cannot read property 'length' of null angular-animate.js:290

这是:

 function extractElementNode(element) {
      for(var i = 0; i < element.length; i++) { //here it cant read length of null!
        var elm = element[i];
        if(elm.nodeType == ELEMENT_NODE) {
          return elm;
        }
      }
    }

有人有任何类似的问题吗?

4

1 回答 1

1

这似乎是一个回归错误。你需要回到 Angular 和 ngAnimate 的 1.2.13 版本。还没有错误修复。对不起 :(

有关更多详细信息,您可以观看此问题

于 2014-04-03T05:44:53.543 回答