Skip to content

Commit

Permalink
Fix: deprecated.js src/core to core/js (fixes #513) (#514)
Browse files Browse the repository at this point in the history
* Fix: deprecated.js src/core to core/js (fixes #513)

* scrolling.js using Adapt.scrolling
  • Loading branch information
oliverfoster authored Apr 15, 2024
1 parent df1813d commit 554505f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/deprecated.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ Object.defineProperties(Adapt, {
},
offlineStorage: {
get() {
logging.deprecated('offlineStorage, please use src/core/offlineStorage instead');
logging.deprecated('offlineStorage, please use core/js/offlineStorage instead');
return offlineStorage;
}
},
Expand Down Expand Up @@ -232,7 +232,7 @@ Object.defineProperties(Adapt, {
},
wait: {
get() {
logging.deprecated('Adapt.wait, please use src/core/wait instead');
logging.deprecated('Adapt.wait, please use core/js/wait instead');
return wait;
}
}
Expand Down
2 changes: 1 addition & 1 deletion js/scrolling.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class Scrolling extends Backbone.Controller {
_windowScrollFix() {
/** @type {HTMLDivElement} */
const body = document.body;
const html = Adapt.scrolling.$html[0];
const html = scrolling.$html[0];
const scrollY = {
get: () => body.scrollTop,
set: value => (body.scrollTop = value)
Expand Down

0 comments on commit 554505f

Please sign in to comment.