Ticket #4366 (closed enhancement: fixed)

Opened 5 years ago

Last modified 4 years 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:
Blocking: Blocked by:

Description

The widget factory should deep copy options on init.

See  jquery-ui-dev thread.

Change History

comment:1 Changed 5 years ago by scott.gonzalez

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

comment:2 Changed 5 years ago by scott.gonzalez

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

Fixed in r2392.

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