Skip to content
Code-Schnipsel Gruppen Projekte
Commit fcd4307a erstellt von Michael Danielczok's avatar Michael Danielczok
Dateien durchsuchen

Merge branch 'dev' into 'master'

fix: Check if pips object is no empty. quiqqer/qui#50

See merge request !9
Übergeordnete 83184a4c 8a075ce3
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
2 Merge Requests!63Update 'next-2.x' with latest changes from 'main',!9fix: Check if pips object is no empty. quiqqer/qui#50
......@@ -95,6 +95,12 @@ define('qui/controls/input/Range', [
start = [this.getAttribute('min'), this.getAttribute('max')];
}
var Pips = this.getAttribute('pips');
if (Object.keys(Pips).length === 0 && Pips.constructor === Object) {
Pips = null;
}
try {
noUiSlider.create(this.$BarContainer, {
start : start,
......@@ -103,7 +109,7 @@ define('qui/controls/input/Range', [
connect: this.getAttribute('connect'),
range : range,
snap : this.getAttribute('snap'),
pips : this.getAttribute('pips')
pips : Pips,
});
} catch (e) {
console.error(e);
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren