Path: blob/master/webroot/rsrc/externals/javelin/docs/Base.js
12242 views
/**1* @requires javelin-install2* @javelin3*/45/**6* This is not a real class, but @{function:JX.install} provides several methods7* which exist on all Javelin classes. This class documents those methods.8*9* @task events Builtin Events10*/11JX.install('Base', {12members : {1314/**15* Invoke a class event, notifying all listeners. You must declare the16* events your class invokes when you install it; see @{function:JX.install}17* for documentation. Any arguments you provide will be passed to listener18* callbacks.19*20* @param string Event type, must be declared when class is21* installed.22* @param ... Zero or more arguments.23*24* @return @{JX.Event} Event object which was dispatched.25* @task events26*/27invoke : function(type, more) {28// <docstub only, see JX.install()> //29},3031/**32* Listen for events emitted by this object instance. You can also use33* the static flavor of this method to listen to events emitted by any34* instance of this object.35*36* See also @{method:JX.Stratcom.listen}.37*38* @param string Type of event to listen for.39* @param function Function to call when this event occurs.40* @return object A reference to the installed listener. You can later41* remove the listener by calling this object's remove()42* method.43* @task events44*/45listen : function(type, callback) {46// <docstub only, see JX.install()> //47}4849},50statics : {5152/**53* Static listen interface for listening to events produced by any instance54* of this class. See @{method:listen} for documentation.55*56* @param string Type of event to listen for.57* @param function Function to call when this event occurs.58* @return object A reference to the installed listener. You can later59* remove the listener by calling this object's remove()60* method.61* @task events62*/63listen : function(type, callback) {64// <docstub only, see JX.install()> //65}6667}68});697071