-
16 Oct 2006 4:19 PM #1
Toolbar up and running but handlers not working.
Toolbar up and running but handlers not working.
I've got my toolbar appearing and styled. When I hover over a button the style changes to ytb-button-over, but when I click nothing happens. If I set a mouseover handler same thing. I've tried a bunch of different ways of setting the handeler, but no dice.
[/code]Code:function alertMe() { alert("HELP!"); } var toolbar = new YAHOO.ext.Toolbar('ltoolbar'); var tb = toolbar.addButton({ className: 'save-button', text: "Save", click: alertMe, mouseover: alertMe, tooltip: "Save this" }); tb.enable(); // Doesn't Help toolbar.addSeparator();
-
16 Oct 2006 4:30 PM #2
Found it:
So if the config property is a function, it won't set it. I think you put this in for people extending Object prototype jack. EXTENDING OBJECT PROTOTYPE IS VERBOTEN!!! And this is a good reason why... [/code]Code:YAHOO.ext.util.Config = { apply : function(obj, config){ console.log(config); if(config){ for(var prop in config){ if(typeof config[prop] != 'function'){ obj[prop] = config[prop]; } } } } };
-
16 Oct 2006 8:04 PM #3
I assume this is why the new version was uploaded

-
17 Oct 2006 3:18 AM #4
Similar Threads
-
Scripts not running on content panels
By RSidetrack in forum Ext 1.x: Help & DiscussionReplies: 5Last Post: 16 Mar 2007, 11:21 AM -
Pass Parameters to Handlers
By Domitian in forum Ext 1.x: Help & DiscussionReplies: 7Last Post: 2 Feb 2007, 3:58 PM -
Drag handlers with Grid
By Ian in forum Ext 1.x: Help & DiscussionReplies: 0Last Post: 11 Jan 2007, 3:10 PM -
NullReferenceException running JSB 1.1
By brian.moeskau in forum Sencha CmdReplies: 1Last Post: 3 Dec 2006, 12:39 PM -
Element.removeListener never removing handlers!
By Animal in forum Ext 1.x: BugsReplies: 2Last Post: 3 Dec 2006, 5:30 AM


Reply With Quote