Skip to content
This repository was archived by the owner on May 22, 2020. It is now read-only.

Commit 2a40b8a

Browse files
committed
Remove possible remote from this._config
Bootstrap 3 uses data-remote for modals. https://getbootstrap.com/docs/3.4/javascript/#modals-options This closes #309
1 parent 32485eb commit 2a40b8a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ekko-lightbox.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,10 +668,12 @@ const Lightbox = (($) => {
668668
config = config || {}
669669
return this.each(() => {
670670
let $this = $(this)
671+
let data = $this.data()
672+
delete data.remote
671673
let _config = $.extend(
672674
{},
673675
Lightbox.Default,
674-
$this.data(),
676+
data,
675677
typeof config === 'object' && config
676678
)
677679

0 commit comments

Comments
 (0)