The simple code below describes my question (at least I hopse so):
$.widget("ui.mydialog", $.ui.dialog, {
  _create: function() {
    // How to call _create method of dialog?
  }
});
I tried to call $.ui.dialog.prototype._create() from within the above create method, but get the below error in Firebug:
this.element is undefined
this.originalTitle = this.element.attr('title');
jquery...5667348 (line 5864)
How else can I call that "super" method?
jQuery UI version 1.8.8
I guess I just found a solution ... $.ui.dialog.prototype._create.call(this);
The full code:
$.widget("ui.ajaxdialog", $.ui.dialog, {
  _create: function() {
    // Your code before calling the overridden method.
    $.ui.dialog.prototype._create.call(this);
    // Your code after calling the overridden method.
  }
});
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With