8000 Rename 'Blacklight' inside of core.js as 'Core' by jrochkind · Pull Request #3355 · projectblacklight/blacklight · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Rename 'Blacklight' inside of core.js as 'Core' #3355

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions app/javascript/blacklight/core.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Blacklight = function() {
const Core = function() {
const buffer = new Array;
return {
onLoad: function(func) {
Expand Down Expand Up @@ -34,13 +34,13 @@ const Blacklight = function() {

// turbolinks triggers page:load events on page transition
// If app isn't using turbolinks, this event will never be triggered, no prob.
Blacklight.listeners().forEach(function(listener) {
Core.listeners().forEach(function(listener) {
document.addEventListener(listener, function() {
Blacklight.activate()
Core.activate()
})
})

Blacklight.onLoad(function () {
Core.onLoad(function () {
const elem = document.querySelector('.no-js');

// The "no-js" class may already have been removed because this function is
Expand All @@ -52,4 +52,4 @@ Blacklight.onLoad(function () {
})


export default Blacklight
export default Core
0