提交 f4a89dce 编写于 作者: K Kohsuke Kawaguchi

I changed where ".items" are added.

It was formerly on <LI> but now it's on <A> as we now allow bare <A>s to
have context menus.
上级 959363b9
......@@ -143,7 +143,7 @@ var breadcrumbs = (function() {
* populating the content.
*/
"attachMenu" : function (li,menu) {
$(li).items = (typeof menu=="function") ? menu : function() { return menu.items };
$(li).firstChild.items = (typeof menu=="function") ? menu : function() { return menu.items };
},
"ContextMenu" : ContextMenu
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册