Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#4366 closed enhancement (fixed)

Deep copy options on init

Reported by: scott.gonzalez Owned by: scott.gonzalez
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 7 years ago by scott.gonzalez

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

comment:2 Changed 7 years ago by scott.gonzalez

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

Fixed in r2392.

comment:3 Changed 6 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.