Skip to content

Commit 62b34ed

Browse files
author
dengxinxin
committed
node.hasAttribute 改为 lib.hasAttribute
1 parent 4ada504 commit 62b34ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Crumb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ define(
9898
var children = lib.getChildren(this.main);
9999
while (node !== this.main) {
100100
if (this.helper.isPart(node, 'node')) {
101-
var index = node.hasAttribute('data-index') ? node.getAttribute('data-index')
101+
var index = lib.hasAttribute(node, 'data-index') ? node.getAttribute('data-index')
102102
: getPathIndex(children, node);
103103
var event = this.fire('click', { item: this.path[index] });
104104
event.isDefaultPrevented() && e.preventDefault();

0 commit comments

Comments
 (0)