Skip to content

Commit 8e072aa

Browse files
committed
Return the menu item so it can be modified
1 parent c1aa7c8 commit 8e072aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ide/main/src/content/xul-utils.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ var XulUtils = {
2323
},
2424

2525
appendMenuItem: function(e, attributes) {
26-
var menuitem = document.createElement("menuitem");
26+
var menuitem = document.createElement("menuitem");
2727
for (var key in attributes) {
2828
if (attributes[key] != null) {
2929
menuitem.setAttribute(key, attributes[key]);
3030
}
3131
}
32-
e.appendChild(menuitem);
32+
return e.appendChild(menuitem);
3333
},
3434

3535
toXPCOMArray: function(data) {

0 commit comments

Comments
 (0)