blacklight-frontend
Advanced tools
Comparing version 8.0.0-pre.1 to 8.0.0-pre.2
@@ -8,3 +8,3 @@ (function (global, factory) { | ||
const Blacklight = function() { | ||
var buffer = new Array; | ||
const buffer = new Array; | ||
return { | ||
@@ -16,3 +16,3 @@ onLoad: function(func) { | ||
activate: function() { | ||
for(var i = 0; i < buffer.length; i++) { | ||
for(let i = 0; i < buffer.length; i++) { | ||
buffer[i].call(); | ||
@@ -23,3 +23,3 @@ } | ||
listeners: function () { | ||
var listeners = []; | ||
const listeners = []; | ||
if (typeof Turbo !== 'undefined') { | ||
@@ -352,5 +352,5 @@ listeners.push('turbo:load'); | ||
modal.hide = function (el) { | ||
var dom = document.querySelector(Blacklight.modal.modalSelector); | ||
const dom = document.querySelector(Blacklight.modal.modalSelector); | ||
if (!dom.open) return; | ||
if (!dom.open) return | ||
dom.close(); | ||
@@ -360,5 +360,5 @@ }; | ||
modal.show = function(el) { | ||
var dom = document.querySelector(Blacklight.modal.modalSelector); | ||
const dom = document.querySelector(Blacklight.modal.modalSelector); | ||
if (dom.open) return; | ||
if (dom.open) return | ||
dom.showModal(); | ||
@@ -390,3 +390,3 @@ }; | ||
Blacklight.handleSearchContextMethod = function(event) { | ||
var link = this; | ||
const link = this; | ||
@@ -393,0 +393,0 @@ // instead of using the normal href, we need to use the context href instead |
{ | ||
"name": "blacklight-frontend", | ||
"version": "8.0.0-pre.1", | ||
"version": "8.0.0-pre.2", | ||
"description": "[![Build Status](https://travis-ci.com/projectblacklight/blacklight.png?branch=main)](https://travis-ci.com/projectblacklight/blacklight) [![Gem Version](https://badge.fury.io/rb/blacklight.png)](http://badge.fury.io/rb/blacklight) [![Coverage Status](https://coveralls.io/repos/github/projectblacklight/blacklight/badge.svg?branch=main)](https://coveralls.io/github/projectblacklight/blacklight?branch=main)", | ||
@@ -5,0 +5,0 @@ "main": "app/assets/javascripts/blacklight", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
68349
2