Guest User

Untitled

a guest
Jul 17th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. var myButton = Ext.extend(Ext.Button, {
  2. text: 'Click me',
  3. initComponent: function() {
  4. var application = this.application;
  5. this.handler = function(e){
  6. var myVariable = 'This is a variable';
  7. application.fireEvent('myCustomEvent', myVariable);
  8. }

  9. myButton.superclass.initComponent.call(this);
  10. }
  11. });
Add Comment
Please, Sign In to add comment