The doResizeOrMove
method has a return value which gets lost in your implementation. It should be
return richfacesUiPopupPanelDoResizeOrMove.call(this, diff);
While rewriting the prototype will work, you may want to take a look at $.extend()
, that's what we use to build the components.
(function() {
var richfacesUiPopupPanelDoResizeOrMove = RichFaces.ui.PopupPanel.prototype.doResizeOrMove;
$.extend(RichFaces.ui.PopupPanel.prototype, (function(options) {
return {
doResizeOrMove: function(diff) {
return richfacesUiPopupPanelDoResizeOrMove.call(this, diff);
}
};
})());
})();