~free.ekanayaka/lazr-js/update-gallery-form

« back to all changes in this revision

Viewing changes to src-js/lazrjs/yui/event-custom/event-custom-base.js

  • Committer: Sidnei da Silva
  • Date: 2010-05-07 16:54:12 UTC
  • mfrom: (166.8.16 3.1.1)
  • Revision ID: sidnei.da.silva@canonical.com-20100507165412-odo3abigpalv0419
- Merge yui-3.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3
3
Code licensed under the BSD License:
4
4
http://developer.yahoo.com/yui/license.html
5
 
version: 3.1.0
6
 
build: 2026
 
5
version: 3.1.1
 
6
build: 47
7
7
*/
8
8
YUI.add('event-custom-base', function(Y) {
9
9
 
337
337
        'details',
338
338
        'emitFacade',
339
339
        'fireOnce',
 
340
        'async',
340
341
        'host',
341
342
        'preventable',
342
343
        'preventedFn',
515
516
     * @default false;
516
517
     */
517
518
    // this.fireOnce = false;
 
519
    
 
520
    /**
 
521
     * fireOnce listeners will fire syncronously unless async
 
522
     * is set to true
 
523
     * @property async
 
524
     * @type boolean
 
525
     * @default false
 
526
     */
 
527
    //this.async = false;
518
528
 
519
529
    /**
520
530
     * Flag for stopPropagation that is modified during fire()
689
699
        var s = new Y.Subscriber(fn, context, args, when);
690
700
 
691
701
        if (this.fireOnce && this.fired) {
692
 
            // Y.later(0, this, Y.bind(this._notify, this, s, this.firedWith));
693
 
            setTimeout(Y.bind(this._notify, this, s, this.firedWith), 0);
 
702
            if (this.async) {
 
703
                setTimeout(Y.bind(this._notify, this, s, this.firedWith), 0);
 
704
            } else {
 
705
                this._notify(s, this.firedWith);
 
706
            }
694
707
        }
695
708
 
696
709
        if (when == AFTER) {
1921
1934
 */
1922
1935
 
1923
1936
 
1924
 
}, '3.1.0' ,{requires:['oop']});
 
1937
}, '3.1.1' ,{requires:['oop']});