Sha256: bb93b1c9d72dff678d4ba03c9ffe4ec232b357d3a4b16bf0fe0512eb9726eb5c

Contents?: true

Size: 1.01 KB

Versions: 4

Compression:

Stored size: 1.01 KB

Contents

LOAD(function(){
  debugg = HApplication.extend({
    constructor: function(){
      this.base(20,'Debugg');
      this.view = HScrollView.extend({
        onIdle: function(){
          this.base();
          this.bringToFront();
        }
      }).nu(
        [0,720,null,400,0,null],
        this
        // , {
        //   // styles: [
        //   //   ['background-color','#ccc']
        //   // ]
        // }
      );
      this.debugHtml = '';
    },
    log: function(){
      if(arguments.length === 1){
        this.debugHtml += '<br>'+this.view.escapeHTML(arguments[0]);
      }
      else {
        this.debugHtml += '<br>'+this.view.escapeHTML(COMM.Values.encode(arguments));
      }
      this.view.setHTML(this.debugHtml);
    },
    obj_log: function(_obj){
      var _html = '{<br>';
      for(var o in _obj){
        _html += o+': '+_obj[o]+'<br>';
      }
      _html += '}';
      this.log(_html);
    }
  }).nu();
  if(window['console'] === undefined){
    console = debugg;
  }
  debugg.log('Debugg start.');
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rsence-2.0.0.3.pre js/debugg/debugg.js
rsence-2.0.0.2.pre js/debugg/debugg.js
rsence-2.0.0.1.pre js/debugg/debugg.js
rsence-2.0.0.0.pre js/debugg/debugg.js