[ 3 posts ]

Roman Stachura

  • Username: stachrom
  • Joined: Wed Feb 10, 2010 12:48 am
  • Posts: 21
  • Twitter: stachrom
  • GitHub: stachrom
  • Gists: stachrom
  • IRC: stachrom
  • Offline
  • Profile
Tags:

notify and yui3.3.0

Post Posted: Thu Jan 27, 2011 3:21 pm
+0-
They dont like each other.
Quote:
Uncaught TypeError: Object [object Object] has no method 'get'
Line 100

Code:
syncUI : function() {
   Y.log('syncUI','info', 'Y.Notify.Message');
    this.timer = new Y.Timer({
      length: this.get('timeout'),
      repeatCount: 1,
      callback: Y.bind(this.close, this)
    });
    this.get(BOUNDING_BOX).appear({
      afterFinish : Y.bind(function(){
        this.timer.start();
      },this)
    });
  },

Roman Stachura

  • Username: stachrom
  • Joined: Wed Feb 10, 2010 12:48 am
  • Posts: 21
  • Twitter: stachrom
  • GitHub: stachrom
  • Gists: stachrom
  • IRC: stachrom
  • Offline
  • Profile

Re: notify and yui3.3.0

Post Posted: Thu Feb 03, 2011 1:49 am
+0-
The solution:

gallery-effects need some help in yui 3.3

viewtopic.php?p=20035#p20035

Code:
YUI({
gallery : 'gallery-2011.01.26-20-33',
modules : {
          'gallery-notify' : {
          fullpath : '/javascript/yui3/gallery-notify/gallery-notify-debug.js',
          requires : ['base','anim','substitute','widget','widget-parent','widget-child','gallery-timer','event-mouseenter','gallery-effects','gallery-button', 'node-deprecated' ]
          }
 }).use('gallery-notify', function(Y){
   //your code
});

Roy Mathew

YUI Contributor

  • Username: roymath
  • Joined: Mon Mar 18, 2013 8:35 am
  • Posts: 9
  • GitHub: roymath
  • Gists: roymath
  • Offline
  • Profile
Tags:

Re: notify and yui3.3.0

Post Posted: Thu Apr 25, 2013 8:32 am
+0-
apipkin suggested a simpler workaround:

"you can add `Y.get || (Y.get = Y.one);` just inside your use() callback and it works"
  [ 3 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
cron