[ 2 posts ]

Swami

  • Username: swami
  • Joined: Sat Oct 31, 2009 3:49 am
  • Posts: 12
  • Offline
  • Profile
Tags:

errors in example code

Post Posted: Fri May 21, 2010 3:53 am
+0-
Hi,

I don't know if anyone is monitoring this forum - but I think there's a few things wrong with the example code posted:

1. I think the gallery build should be : gallery-2010.01.27-20
2. you need to put the 'node' module in the use method

Even after doing this, I still get the following error: "Y.ACWidget is not a constructor"

If anyone knows how to get this working I'd like to hear about it :-)

Kind Regards

Swami

Eike Hirsch

  • Username: ehirsch
  • Joined: Thu Nov 05, 2009 11:48 pm
  • Posts: 27
  • Location: Hannover, Germany
  • GitHub: ehirsch
  • Gists: ehirsch
  • Offline
  • Profile

Re: errors in example code

Post Posted: Mon May 31, 2010 4:07 am
+0-
Hi,

I just ran into the same problem. The error is in the line
Code:
YUI.add('gallery-autocomplete', function(Y){}, 'gallery-2010.01.27-20' ,{use:['gallery-ac-plugin']});

of the gallery module. The use-statement misses 'gallery-ac-widget' here. You can fix this by adding this manually to your use-statement.
Code:
var Y = YUI({
          gallery: 'gallery-2010.01.27-20'
          , filter:"DEBUG"
      }).use('gallery-ac-widget'...

hth
Eike
  [ 2 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