Ver código fonte

Ticket #5526 - Notifications: JS error appears when viewing the list.

AntonLV 4 meses atrás
pai
commit
a75a722959
1 arquivos alterados com 4 adições e 7 exclusões
  1. 4 7
      modules/boonex/notifications/js/view.js

+ 4 - 7
modules/boonex/notifications/js/view.js

@@ -1,15 +1,12 @@
 function BxNtfsView(oOptions) {
-	this._sActionsUri = oOptions.sActionUri;
-    this._sActionsUrl = oOptions.sActionUrl;
+    BxNtfsMain.call(this, oOptions);
+
     this._sObjName = oOptions.sObjName == undefined ? 'oNtfsView' : oOptions.sObjName;
     this._iOwnerId = oOptions.iOwnerId == undefined ? 0 : oOptions.iOwnerId;
-    this._sAnimationEffect = oOptions.sAnimationEffect == undefined ? 'slide' : oOptions.sAnimationEffect;
-    this._iAnimationSpeed = oOptions.iAnimationSpeed == undefined ? 'slow' : oOptions.iAnimationSpeed;
-    this._aHtmlIds = oOptions.aHtmlIds == undefined ? {} : oOptions.aHtmlIds;
-    this._oRequestParams = oOptions.oRequestParams == undefined ? {} : oOptions.oRequestParams;
 }
 
-BxNtfsView.prototype = new BxNtfsMain();
+BxNtfsView.prototype = Object.create(BxNtfsMain.prototype);
+BxNtfsView.prototype.constructor = BxNtfsView;
 
 /**
  * Is needed to switch between different browsing types dynamically.