Skip to content

Commit

Permalink
Fix #11700: Widgets with trigger/target bind for removal
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Apr 10, 2024
1 parent 70f9335 commit 78094d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,6 @@ PrimeFaces.widget.Draggable = PrimeFaces.widget.BaseWidget.extend({
};

this.jqTarget.draggable(this.cfg);

this.addDestroyListener(function() {
if ($this.jqTarget.length) {
$this.jqTarget.draggable('destroy');
}
});
}

});
Expand Down Expand Up @@ -100,7 +94,6 @@ PrimeFaces.widget.Droppable = PrimeFaces.widget.BaseWidget.extend({
*/
init: function(cfg) {
this._super(cfg);
var $this = this;

this.jqTarget = $(PrimeFaces.escapeClientId(this.cfg.target));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ PrimeFaces.widget.Resizable = PrimeFaces.widget.BaseWidget.extend({
if (container) {
var $container = $(container);
if ($container.length) {
var _self = this;
var $this = this;
PrimeFaces.addDeferredRender(this.id, $container.attr('id'), function() {
return _self.render();
return $this.render();
});
}
}
Expand Down

0 comments on commit 78094d7

Please sign in to comment.