[ 4 posts ]

Bart Teeuwisse

  • Username: bartt
  • Joined: Fri Jun 11, 2010 4:39 pm
  • Posts: 1
  • Twitter: bartt
  • IRC: bartt
  • Offline
  • Profile
Tags:

Version gallery-2010.10.06-18-55 not working?

Post Posted: Fri Oct 08, 2010 9:28 am
+0-
Gopal,

I tried out version gallery-2010.10.06-18-55 of the carousel like so

Click here to see the revision history on this Gist., but get a
Code:
Uncaught TypeError: Object [object Object] has no method 'substitute'
error.

The carousel's code sample uses YUI 3.1.0, which yields the same error.

Thoughts?

Huge Huang

YUI Contributor

  • Username: huang47
  • Joined: Tue Sep 21, 2010 8:44 pm
  • Posts: 3
  • Location: San Francisco
  • Twitter: huang47
  • GitHub: huang47
  • Gists: huang47
  • IRC: huge
  • Offline
  • Profile

Re: Version gallery-2010.10.06-18-55 not working?

Post Posted: Mon Oct 11, 2010 6:54 am
+0-
In my test I have to use console for gallery-carousel, I am not sure if it's by designed.

YUI({
gallery: 'gallery-2010.10.06-18-55'
}).use('console', 'gallery-carousel', function(Y) {
// carousel stuff
});

Gopal Venkatesan

YUI Developer

  • Username: g13n
  • Joined: Mon Dec 08, 2008 11:09 pm
  • Posts: 48
  • Location: Cupertino, CA
  • Twitter: g13n
  • GitHub: g13n
  • Gists: g13n
  • YUI Developer
  • Offline
  • Profile
Tags:

Re: Version gallery-2010.10.06-18-55 not working?

Post Posted: Wed Oct 13, 2010 3:03 pm
+0-
[quote="bartt"]I tried out version gallery-2010.10.06-18-55 of the carousel like so [gist=617158] [/gist], but get a
[code]Uncaught TypeError: Object [object Object] has no method 'substitute'[/code] error.

The carousel's code sample uses YUI 3.1.0, which yields the same error.

Thoughts?[/quote]

Hi Bartt,

I had left out the dependency on "substitute" which is why you're getting the error. I've updated the example code. Thanks for reporting.
Gopal Venkatesan (g13n)
http://g13n.me/

Gopal Venkatesan

YUI Developer

  • Username: g13n
  • Joined: Mon Dec 08, 2008 11:09 pm
  • Posts: 48
  • Location: Cupertino, CA
  • Twitter: g13n
  • GitHub: g13n
  • Gists: g13n
  • YUI Developer
  • Offline
  • Profile

Re: Version gallery-2010.10.06-18-55 not working?

Post Posted: Wed Oct 13, 2010 3:05 pm
+0-
[quote="huang47"]In my test I have to use console for gallery-carousel, I am not sure if it's by designed.

YUI({
gallery: 'gallery-2010.10.06-18-55'
}).use('console', 'gallery-carousel', function(Y) {
// carousel stuff
});[/quote]

Hi Huge Huang,

Carousel doesn't have a dependency on "console", but it had a dependency on "substitute" which was missing from its build configuration. So, when you included "console", that in turn pulled in "substitute" and you didn't get the error! I've fixed the example code now.
Gopal Venkatesan (g13n)
http://g13n.me/
  [ 4 posts ]
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