Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#4366 closed enhancement (fixed)

Deep copy options on init

Reported by: scottgonzalez Owned by: scottgonzalez
Priority: minor Milestone: 1.8
Component: ui.core Version: 1.7
Keywords: Cc:
Blocked by: Blocking:


The widget factory should deep copy options on init.

See jquery-ui-dev thread.

Change History (3)

comment:1 Changed 8 years ago by scottgonzalez

  • Owner set to scott.gonzalez
  • Status changed from new to assigned

comment:2 Changed 8 years ago by scottgonzalez

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

Fixed in r2392.

comment:3 Changed 7 years ago by thetoolman

The workaround for compatibility with earlier UI releases is this oneliner in your init function:

this.options = $.extend(true, {}, this.options); deep copy

Note: See TracTickets for help on using tickets.