File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
app/javascript/blacklight Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1- const Blacklight = function ( ) {
1+ const Core = function ( ) {
22 const buffer = new Array ;
33 return {
44 onLoad : function ( func ) {
@@ -34,13 +34,13 @@ const Blacklight = function() {
3434
3535// turbolinks triggers page:load events on page transition
3636// If app isn't using turbolinks, this event will never be triggered, no prob.
37- Blacklight . listeners ( ) . forEach ( function ( listener ) {
37+ Core . listeners ( ) . forEach ( function ( listener ) {
3838 document . addEventListener ( listener , function ( ) {
39- Blacklight . activate ( )
39+ Core . activate ( )
4040 } )
4141} )
4242
43- Blacklight . onLoad ( function ( ) {
43+ Core . onLoad ( function ( ) {
4444 const elem = document . querySelector ( '.no-js' ) ;
4545
4646 // The "no-js" class may already have been removed because this function is
@@ -52,4 +52,4 @@ Blacklight.onLoad(function () {
5252} )
5353
5454
55- export default Blacklight
55+ export default Core
You can’t perform that action at this time.
0 commit comments