commit | 20f7ace81ab905dc7592dfc1ada9210a8ff24e65 | [log] [tgz] |
---|---|---|
author | Nils Diewald <nils@diewald-online.de> | Thu May 07 12:51:34 2015 +0000 |
committer | Nils Diewald <nils@diewald-online.de> | Thu May 07 12:51:34 2015 +0000 |
tree | 26ac52566860d1625327671c2d902e3719097c47 | |
parent | 565db10988c4d163f8ce5e1e89b80c930ce9ebcf [diff] |
Fixed active first item on non-hint menus
diff --git a/dev/demo/menudemo.js b/dev/demo/menudemo.js index 055963b..1df0f55 100644 --- a/dev/demo/menudemo.js +++ b/dev/demo/menudemo.js
@@ -49,9 +49,11 @@ var OwnMenu = { create : function (params) { - return Object.create(menuClass) + var obj = Object.create(menuClass) .upgradeTo(this) ._init(OwnMenuItemClass, OwnPrefixClass, params); + obj._firstActive = true; + return obj; } };