Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var myButton = Ext.extend(Ext.Button, {
- text: 'Click me',
- initComponent: function() {
- var application = this.application;
- this.handler = function(e){
- var myVariable = 'This is a variable';
- application.fireEvent('myCustomEvent', myVariable);
- }
- myButton.superclass.initComponent.call(this);
- }
- });
Add Comment
Please, Sign In to add comment