-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove
setScrollClassName
mixin and usage
no issue - removes `setScrollClassName` mixin that was previously used to add a `.scrolling` class to scrollable elements that showed a shadow at the top of boxes when not scrolled to the top
- Loading branch information
1 parent
7fea696
commit 117ab27
Showing
5 changed files
with
2 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,7 @@ | ||
import Ember from 'ember'; | ||
import InfiniteScrollMixin from 'ghost/mixins/infinite-scroll'; | ||
import setScrollClassName from 'ghost/utils/set-scroll-classname'; | ||
|
||
const {Component, run} = Ember; | ||
const {Component} = Ember; | ||
|
||
export default Component.extend(InfiniteScrollMixin, { | ||
didInsertElement() { | ||
let el = this.$(); | ||
|
||
this._super(...arguments); | ||
|
||
el.on('scroll', run.bind(el, setScrollClassName, { | ||
target: el.closest('.content-list'), | ||
offset: 10 | ||
})); | ||
}, | ||
|
||
willDestroyElement() { | ||
this._super(...arguments); | ||
this.$().off('scroll'); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.