Sha256: 68888fb87ce4e0ed790b8a55a8d318ba7908637d2c6657b1bad1787aa74f32cb

Contents?: true

Size: 446 Bytes

Versions: 1

Compression:

Stored size: 446 Bytes

Contents

Ext.ns('Rwiki');

Rwiki.Debug = {

  /**
   * Log the event names to the console of any observable object.
   */
  captureEvents: function(observable) {
    Ext.util.Observable.capture(observable, function(eventName, data) {
      if (!window.console) return;

      console.log(data);
      console.log(eventName);
    });
  },

  emulateSlowConnection: function(emulate) {
    Ext.Ajax.extraParams = { emulateSlowConnection: emulate };
  }

};

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rwiki-0.2.5 public/javascripts/Rwiki/Debug.js