[ 1 post ]

gaurav_kl

  • Joined: Sun Feb 26, 2012 5:08 pm
  • Posts: 9
  • Offline
  • Profile

getting Y.YUI2 globally

Post Posted: Tue Feb 28, 2012 12:02 pm
+0-
I need to access Y.YUI2 object(YAHOO object) in my JS codes as I am working for 2 to 2-in-3 transition .

I need this object globally because this object is being used in hundreds of places in the JS codes so I want an easier way to access it rather than access it via a callback everytime I need it.

I am using SimpleYUI.
Alberto suggested something like Y.use().apply(Y,"yui2-menu").
So I tried many things like applyConfig but didn't work.

So my main aim is to make the global Y object get a YUI2 value .I can't do it via Y.use(.....) because use() does not block and the code below it needs YAHOO object.

Thanks
  [ 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