title: What is state management in jQuery?
body: <p>In <a href="http://learn.jquery.com/jquery-ui/widget-factory/" rel="nofollow noreferrer">jQuery UI Widget Factory</a>:</p>
  <blockquote>
  <p>The jQuery UI Widget Factory is an extensible base on which all of
  jQuery UI's widgets are built. Using the widget factory to build a
  plugin provides conveniences for state management, as well as
  conventions for common tasks like exposing plugin methods and changing
  options after instantiation.</p>
  </blockquote>
  <p>Could someone please explain in simple words (preferably with an example ), what does state management mean in this context? The state management I know is browser history <code>state management</code> (maybe using HTML5 History API, or history.js) but I don't see any relationship between it and jQuery UI Widget Factory purposes.</p>
  <p>Your help is appreciated.</p>