tryanDLS
17 Nov 2006, 3:43 PM
Jack,
I was trying to do:
var dh = YAHOO.ext.DomHelper;
dh.useDom = true;
var x = dh.append('dlg', {tag:'div', style:'visibility:hidden'}, true);
createDom chokes trying to call this.applyStyles b/c scope is wrong - 'this' in createDom is pointing to window, not DomHelper. I think you might have to create a private 'me' var that's set to 'this' and use 'me' in the private methods to call public methods.
[/code]
I was trying to do:
var dh = YAHOO.ext.DomHelper;
dh.useDom = true;
var x = dh.append('dlg', {tag:'div', style:'visibility:hidden'}, true);
createDom chokes trying to call this.applyStyles b/c scope is wrong - 'this' in createDom is pointing to window, not DomHelper. I think you might have to create a private 'me' var that's set to 'this' and use 'me' in the private methods to call public methods.
[/code]