@@ 558-568 (lines=11) @@ | ||
555 | // this._onTouchHandler = function(id) { } |
|
556 | // this._setOnTouchHandler = function(handler) { this._onTouchHandler = function(id) { handler(id); } } |
|
557 | /* return menu array of all nested objects */ |
|
558 | this._searchMenuNode = function(node, menu) { |
|
559 | var m = new Array(); |
|
560 | for (var q=0; q<menu.length; q++) { |
|
561 | if (typeof(menu[q]) == "object") { |
|
562 | if (menu[q].length == 5) { if (typeof(menu[q][0]) != "object") { if ((menu[q][0].replace(this.idPrefix, "") == node) && (q == 0)) { m = menu; } } } |
|
563 | var j = this._searchMenuNode(node, menu[q]); |
|
564 | if (j.length > 0) { m = j; } |
|
565 | } |
|
566 | } |
|
567 | return m; |
|
568 | } |
|
569 | /* return array of subitems for single menu object */ |
|
570 | /* modified in version 0.3 */ |
|
571 | this._getMenuNodes = function(node) { |
@@ 532-542 (lines=11) @@ | ||
529 | // this._onTouchHandler = function(id) { } |
|
530 | // this._setOnTouchHandler = function(handler) { this._onTouchHandler = function(id) { handler(id); } } |
|
531 | /* return menu array of all nested objects */ |
|
532 | this._searchMenuNode = function(node, menu) { |
|
533 | var m = new Array(); |
|
534 | for (var q=0; q<menu.length; q++) { |
|
535 | if (typeof(menu[q]) == "object") { |
|
536 | if (menu[q].length == 5) { if (typeof(menu[q][0]) != "object") { if ((menu[q][0].replace(this.idPrefix, "") == node) && (q == 0)) { m = menu; } } } |
|
537 | var j = this._searchMenuNode(node, menu[q]); |
|
538 | if (j.length > 0) { m = j; } |
|
539 | } |
|
540 | } |
|
541 | return m; |
|
542 | } |
|
543 | /* return array of subitems for single menu object */ |
|
544 | /* modified in version 0.3 */ |
|
545 | this._getMenuNodes = function(node) { |