1 /**
  2  * @fileOverview loading mask support for overlay
  3  * @author yiminghe@gmail.com
  4  */
  5 KISSY.add("component/uibase/loading", function () {
  6 
  7     /**
  8      * @name Loading
  9      * @class
 10      * Loading extension class.
 11      * Make component to be able to mask loading.
 12      * @memberOf Component.UIBase
 13      */
 14     function Loading() {
 15     }
 16 
 17     Loading.prototype =
 18     /**
 19      * @lends Component.UIBase.Loading#
 20      */
 21     {
 22         /**
 23          * mask component as loading
 24          */
 25         loading:function () {
 26             this.get("view").loading();
 27             return this;
 28         },
 29 
 30         /**
 31          * unmask component as loading
 32          */
 33         unloading:function () {
 34             this.get("view").unloading();
 35             return this;
 36         }
 37     };
 38 
 39     return Loading;
 40 
 41 });