×

Discussion Board

Results 1 to 1 of 1
  1. #1
    Registered User
    Join Date
    Nov 2009
    Posts
    11

    Prototype + window.menu.items ! menu shows PrototypeJS functions names

    Hi !

    I get some troubles wqith my widget.

    I try to use Prototype with WRTKIT.

    My problem is that PrototypeJS extends the "items" object to add some functionnality.

    So, when I build a menu like this (i'm working with RSSReader example from Aptana studio) :

    Code:
        if (window.widget) {
            // set tab-navigation mode and show softkeys
            widget.setNavigationEnabled(false);
            window.menu.showSoftkeys();
    		
            // create menu
            var settingsMenuItem = new MenuItem("Settings", MENU_ITEM_SETTINGS);
            settingsMenuItem.onSelect = menuItemSelected;
            menu.append(settingsMenuItem);
            var refreshMenuItem = new MenuItem("Refresh", MENU_ITEM_REFRESH);
            refreshMenuItem.onSelect = menuItemSelected;
            menu.append(refreshMenuItem);
    	var aboutMenuItem = new MenuItem("About", MENU_ITEM_ABOUT);
    	aboutMenuItem.onSelect = menuItemSelected;
    	menu.append(aboutMenuItem);
        }
    My menu is OK, but i can see all functions names from Prototype (functions from "items" object)

    Is there a way to show only objects items, not functions?

    Regards

    Bertrand
    Last edited by bduthoit; 2009-11-20 at 14:15.

Similar Threads

  1. WRTkit focus highlight style problems
    By hp3 in forum Symbian
    Replies: 1
    Last Post: 2010-02-16, 08:21
  2. WRTkit and touch screen devices
    By hp3 in forum Symbian
    Replies: 3
    Last Post: 2009-06-30, 09:44
  3. Replies: 3
    Last Post: 2009-01-25, 21:12
  4. security using SATSA, howTo to develop a prototype?
    By ovjo12 in forum Mobile Java Networking & Messaging & Security
    Replies: 5
    Last Post: 2006-12-17, 10:10
  5. howTo develop a prototype using SATSA
    By ovjo12 in forum Mobile Java Tools & SDKs
    Replies: 5
    Last Post: 2006-08-31, 18:30

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×