Ticket #5618 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

Error in Jquery Widget example under UI Developer Docs

Reported by: mjpowersjr Owned by:
Priority: minor Milestone: 1.8.2
Component: [meta] ui.docs Version: 1.8.1
Keywords: Cc:
Blocking: Blocked by:


After reading the basic documentation on how to create a new jquery widget, I found a small error in the documentation about overwriting _setOption from the $.widget class.

This line:

setOption: function(key, value) {

should be:

_setOption: function(key, value) {

taken from:  http://jqueryui.com/docs/Developer_Guide

... This functionality is handled by the base widget, you will need to define what to do after each option is set. To do this, you must overwrite the setOption function in your widget's prototype, like so

setOption: function(key, value) {

handle new settings and update options hash



Change History

comment:1 Changed 6 years ago by rdworth

  • Status changed from new to closed
  • Resolution set to fixed

comment:2 Changed 6 years ago by rdworth

  • Milestone changed from TBD to 1.9

comment:3 Changed 6 years ago by rdworth

  • Milestone changed from 1.9 to 1.8.2
Note: See TracTickets for help on using tickets.