Skip to content

Commit

Permalink
always call the intercepted function
Browse files Browse the repository at this point in the history
  • Loading branch information
twobiers committed Sep 22, 2023
1 parent 142f9a3 commit afa6ca8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/EventHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export default class EventHandler {

(function (loaded) {
p.View.Stream.Main.prototype.loaded = function (items, position, error) {
if(p.currentView.classId === 26) {
loaded.call(this, items, position, error);
loaded.call(this, items, position, error);
if (p.currentView.classId === 26) {
_this.streamLoaded.data = {
items,
position,
Expand All @@ -37,8 +37,8 @@ export default class EventHandler {

(function (load) {
p.Stream.prototype._load = function (options, callback) {
if(p.currentView.classId === 26) {
load.call(this, options, callback);
load.call(this, options, callback);
if (p.currentView.classId === 26) {
_this.loadStreamContent.data = {
options
};
Expand Down

0 comments on commit afa6ca8

Please sign in to comment.