Skip to main content

Search and Top Navigation

#5618 closed bug (fixed)

Opened May 16, 2010 07:16PM UTC

Closed May 17, 2010 08:11AM UTC

Last modified May 20, 2010 11:16AM UTC

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:
Blocked by: Blocking:
Description

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

}

...

Attachments (0)
Change History (3)

Changed May 17, 2010 08:11AM UTC by rdworth comment:1

resolution: → fixed
status: newclosed

Changed May 17, 2010 08:11AM UTC by rdworth comment:2

milestone: TBD1.9

Changed May 20, 2010 11:16AM UTC by rdworth comment:3

milestone: 1.91.8.2