Skip to content

Commit

Permalink
Check the type of the target. Submenus aren't functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Felicitus committed Nov 28, 2015
1 parent e919c1a commit fe66410
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ Ext.application({
this.loginManager.login();
},
onAppMenuClick: function (item) {
this.openAppItem(item.target["$className"]);
if (typeof item.target === "function") {
this.openAppItem(item.target["$className"]);
}
},
openAppItem: function (target) {
targetClass = Ext.ClassManager.get(target);
Expand Down

0 comments on commit fe66410

Please sign in to comment.