我使用角带+角动画(角运动)创建了几个工具提示。最初他们正在工作,因为所有这些都显示在悬停上。但是,当快速将鼠标悬停在任何工具提示上时,它们会冻结并卡在左上角。
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;
}
}
}
有人有任何类似的问题吗?