1 /**
  2  * @fileOverview loading mask support for overlay
  3  * @author yiminghe@gmail.com
  4  */
  5 KISSY.add("component/uibase/loadingrender", function(S, Node) {
  6 
  7     function Loading() {
  8     }
  9 
 10     Loading.prototype = {
 11         loading:function() {
 12             var self = this;
 13             if (!self._loadingExtEl) {
 14                 self._loadingExtEl = new Node("<div " +
 15                     "class='" +
 16                     "ks-ext-loading'" +
 17                     " style='position: absolute;" +
 18                     "border: none;" +
 19                     "width: 100%;" +
 20                     "top: 0;" +
 21                     "left: 0;" +
 22                     "z-index: 99999;" +
 23                     "height:100%;" +
 24                     "*height: expression(this.parentNode.offsetHeight);" + "'/>")
 25                     .appendTo(self.get("el"));
 26             }
 27             self._loadingExtEl.show();
 28         },
 29 
 30         unloading:function() {
 31             var lel = this._loadingExtEl;
 32             lel && lel.hide();
 33         }
 34     };
 35 
 36     return Loading;
 37 
 38 }, {
 39     requires:['node']
 40 });