jQuery UI 1.8 - Use of _init

jQuery UI 1.8 - Use of _init

I am current upgrading my custom ui widgets to work with the new version of UI.

I am wondering what exactly is the use of _init in the new jQuery UI 1.8?

From the change doc it says:

  •    A new _init() method was added to perform "default functionality"
  •    _init() is called every time the plugin is called without passing the name of a method to invoke

I am guessing that it is to be used as a "reset" functionality to get it back to the initial state.

So _create is used to manipulate the document and _init is used to set the initial values/states.

Eric