Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8434043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:33:02+00:00 2026-06-10T06:33:02+00:00

As of jQuery 1.9, a widget can inherit from itself . I couldn’t find

  • 0

As of jQuery 1.9, a widget can inherit from itself. I couldn’t find a real-world example of why this would be useful, and frankly the idea of inheriting from oneself breaks my brain. What is the purpose of this feature? What can I do using this feature that I couldn’t do previously, or would’ve been much harder previously?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T06:33:04+00:00Added an answer on June 10, 2026 at 6:33 am

    As it is said in the slide you linked us, “this is the ideal way to extend widgets“.

    Now you can extend a widget without creating a new, “different” widget object (“different” meaning “another name”). You can add a functionality and still use the very same widget object name.

    // An incredibly contrived example
    $.widget("ui.dialog", $.ui.dialog, {
      close: function() {
        if (confirm( "Is it closing time?" )) {
          this._super("close");
        }
      }
    });
    

    As we can see in the example, we can add a feature to the dialog object, which will appear in the already existent dialogs, i.e., you don’t need to create a new “extendedDialog” and then change existent code to use the “extendedDialog” object. Instead, the included functionality will be already available and working there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the jQuery-File-Upload widget (although I believe this question can generalize to
Given this example jQuery UI widget, found on http://jqueryui.com/demos/widget/ : $(function() { // the
I'm using this JQuery autocomplete widget . How can I make it automatically open
Looking for a jQuery MultiSelect Widget that can handle thousands of items. Really like
I'm trying to override a method inside a jquery widget. The method can be
jQuery.widget(ui.test, { _init: function(){ alert(this.element.innerHTML); } }); How do I make it so when
I have a jquery widget that get data from a server in another domain
How can I use this json data as data source of jquery autocomplete? [{uid:123,UserName:xxx},{uid:124,UserName:yyy}]
I would like to use jQuery in ASP.NET User Control. Can some one tell
I'm trying to create a jQuery widget which extends from ui.slider . I'd like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.