Ticket #4366 (closed enhancement: fixed)

Opened 12 months ago

Last modified 5 weeks ago

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:

Description

The widget factory should deep copy options on init.

See jquery-ui-dev thread.

Change History

Changed 12 months ago by scott.gonzalez

  • status changed from new to assigned
  • owner set to scott.gonzalez

Changed 12 months ago by scott.gonzalez

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in r2392.

Changed 5 weeks 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.