自己动手实现jQuery Callbacks完整功能代码详解(9)

this.fire = function ( args )
                {
                    _fire( this, args );
                    return this;
                };

this.lock = function ()
                {
                    _locked = true;
                    return this;
                };

this.locked = function ()
                {
                    return _locked;
                };

};

// exposed to global as a factory method
            window.callbacks = function ( options )
            {
                return new Callbacks( options );
            };

} )( window );

您可能感兴趣的文章:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wdwxwp.html