[ 1 post ]

Marco Asbreuk

YUI Contributor

  • Username: itsasbreuk
  • Joined: Mon Nov 16, 2009 5:14 am
  • Posts: 485
  • Location: Netherlands
  • Twitter: itsasbreuk
  • GitHub: ItsAsbreuk
  • Gists: ItsAsbreuk
  • IRC: Marco Asbreuk
  • Offline
  • Profile

Small error

Post Posted: Mon Feb 28, 2011 1:55 pm
+0-
Hi Jeff,

I wanted to make use of your slideshow, but it didn't work when rendering on an empty div.
I think there is a small error in your renderUI function:

Code:
if (title.length > 0) { this._setHeaderContents(title);
if (!Y.Lang.isValue(bodyNode)) {
    bodyNode = this._addTemplate(this.TEMPLATES.body);
    this.set('bodyNode', bodyNode);
}}

should be:
Code:
if (title.length > 0) { this._setHeaderContents(title);}
if (!Y.Lang.isValue(bodyNode)) {
    bodyNode = this._addTemplate(this.TEMPLATES.body);
    this.set('bodyNode', bodyNode);
}

Sorry for not posting it on Github: I have not dived in Github yet...
Another small thing: your codeexample mentioned new Y.Slideshow instead of new Y.SlideShow.
Anyway, the slideshow works great now. Thanks for letting me take use of it.

Kind Regards,
Marco.
  [ 1 post ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
cron