AW.HTML.DIV:setClass bug?
var AssetPanel = new AW.HTML.DIV;
AssetPanel.setSize( 209, 278 );
AssetPanel.setPosition( 523, 342 );
AssetPanel.setClass( "panel" );
document.write( AssetPanel );
Using the DOM inspector with Firefox shows that the class is set as
aw-panel-undefined.
I'm assuming this is not intentional.
Eric
March 2,
Sorry, posted too quickly. Passing a second argument "" to setClass almost correctly gives aw-panel-. I'd expect it to give aw-panel if the second argument is missing. Should be easy (and small) to patch in for the next release.
Eric
March 2,
Alex (ActiveWidgets)
March 3,
Aha, excellent, thanks for updating the wiki page on how it works. The tip on passing a function is, well, awesome.
Thanks!
Eric
March 4,