Skip to content

Commit

Permalink
GUI: Solved a null-reference
Browse files Browse the repository at this point in the history
  • Loading branch information
andersevenrud committed Nov 28, 2017
1 parent 6f02e99 commit 843ec1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/javascript/gui/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export function create(items, ev, customInstance) {
clamp(root);

lastMenu = function() {
callbackMap = null;
callbackMap = [];
if ( root ) {
root.querySelectorAll('gui-menu-entry').forEach(function(el) {
Events.$unbind(el);
Expand Down

0 comments on commit 843ec1e

Please sign in to comment.