Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 5th, 2012  |  syntax: None  |  size: 0.29 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Ext.extend(Namespace.ClassName, BaseClass, {
  2.         handler: function(event-params) {
  3.                 // this is really the instance...
  4.         }
  5.  
  6.         public_method: function() {
  7.                 // "this" is really the instance of the class
  8.  
  9.                 // this is how you fire an event:
  10.                 this.fireEvent("event1", { data: "event data" });
  11.         }
  12. });