FLUID-5966: that.container missing the selector and context properties

Metadata

Source
FLUID-5966
Type
Bug
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
N/A
Reporter
Justin Obara
Created
2016-09-21T16:28:35.663-0400
Updated
2019-07-12T09:16:17.687-0400
Versions
N/A
Fixed Versions
  1. 2.0
Component
  1. Framework
  2. Prefs Framework

Description

When trying to upgrading to jQuery v3.1 ( see: FLUID-5825 ), it was discovered that jQuery has now removed the "selector" property from their objects. The "selector" and "context" properties have been deprecated since v1.9 and were officially removed in v3.0 ( https://jquery.com/upgrade-guide/3.0/#breaking-change-deprecated-context-and-selector-properties-removed ).

The DOM Binder has taken care of re-adding these properties to the jQuery objects resolved through it. However, Panels.js from the Prefs Framework requires the "selector" property when reseting the DOM binder in sub panels.

It is necessary to add the context and selector properties back to component containers created with fluid.container in FluidView.js and with fluid.prefs.subPanel.resetDomBinder in Panels.js. ( the sub panel does a manual recreation of the container to ensure that it is sourced from an attached DOM element in the correct document – e.g. iframe ) ( see: FLUID-4536 )

Comments