Skip to content

Comments

Configurable parameter insertAfter and insertBefore overriden by default#43

Open
pp-surbhigupta wants to merge 1 commit intofredwu:masterfrom
pp-surbhigupta:master
Open

Configurable parameter insertAfter and insertBefore overriden by default#43
pp-surbhigupta wants to merge 1 commit intofredwu:masterfrom
pp-surbhigupta:master

Conversation

@pp-surbhigupta
Copy link

When integrating the Plugin, I faced an issue that my content was not getting replaced at the position mentioned in the configuration

$('#scrollableList').endlessScroll({
fireOnce: false,
inflowPixels: 1,
insertAfter: '#scrollableList div:last',
insertBefore: '#scrollableList div:last',
loader: ''
});

insertAfter and insertBefore were overriden in the function EndlessScroll.prototype.setInsertPositionsWhenNecessary since we are using default to check if insertAfter and insertBefore are provided. We should be checking for options.insertAfter and options.insertBefor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant