Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
v3.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkunka committed Mar 4, 2017
1 parent 752a4d6 commit 39d92ae
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 26 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Change Log
==========

## 3.1.8

- Adds ability to bind live controls where multiple parents exist. Required for Pagination 3.2.0.

## 3.1.7

- Fixed duplicate hook `beforeCacheDom` in `Target#cacheDom`. Now renamed to `afterCacheDom`.
Expand Down
8 changes: 4 additions & 4 deletions demos/mixitup.min.js

Large diffs are not rendered by default.

26 changes: 16 additions & 10 deletions dist/mixitup.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**!
* MixItUp v3.1.7
* MixItUp v3.1.8
* A high-performance, dependency-free library for animated filtering, sorting and more
* Build dcb11d27-0cb4-45f7-949b-e3742b467160
* Build 8b4a57ae-dad2-4d16-bc0b-024c6a7b1cb0
*
* @copyright Copyright 2014-2017 KunkaLabs Limited.
* @author KunkaLabs Limited.
Expand Down Expand Up @@ -5206,7 +5206,7 @@
controlElements = null,
el = null,
parent = null,
delagator = null,
delagators = null,
control = null,
i = -1,
j = -1;
Expand All @@ -5229,20 +5229,26 @@
for (i = 0; definition = mixitup.controlDefinitions[i]; i++) {
if (self.config.controls.live || definition.live) {
if (definition.parent) {
delagator = self.dom[definition.parent];
delagators = self.dom[definition.parent];

if (!delagator) continue;
if (!delagators || delagators.length < 0) continue;

if (typeof delagators.length !== 'number') {
delagators = [delagators];
}
} else {
delagator = parent;
delagators = [parent];
}

control = self.getControl(delagator, definition.type, definition.selector);
for (j = 0; (el = delagators[j]); j++) {
control = self.getControl(el, definition.type, definition.selector);

self.controls.push(control);
self.controls.push(control);
}
} else {
controlElements = parent.querySelectorAll(self.config.selectors.control + definition.selector);

for (j = 0; el = controlElements[j]; j++) {
for (j = 0; (el = controlElements[j]); j++) {
control = self.getControl(el, definition.type, '');

if (!control) continue;
Expand Down Expand Up @@ -10475,5 +10481,5 @@
mixitup.BaseStatic.call(mixitup.constructor);

mixitup.NAME = 'mixitup';
mixitup.CORE_VERSION = '3.1.7';
mixitup.CORE_VERSION = '3.1.8';
})(window);
8 changes: 4 additions & 4 deletions dist/mixitup.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mixitup",
"title": "MixItUp",
"version": "3.1.7",
"version": "3.1.8",
"description": "A high-performance, dependency-free library for animated filtering, sorting and more",
"author": "KunkaLabs Limited",
"homepage": "https://www.kunkalabs.com/mixitup/",
Expand Down
20 changes: 13 additions & 7 deletions src/mixer.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ h.extend(mixitup.Mixer.prototype,
controlElements = null,
el = null,
parent = null,
delagator = null,
delagators = null,
control = null,
i = -1,
j = -1;
Expand All @@ -346,20 +346,26 @@ h.extend(mixitup.Mixer.prototype,
for (i = 0; definition = mixitup.controlDefinitions[i]; i++) {
if (self.config.controls.live || definition.live) {
if (definition.parent) {
delagator = self.dom[definition.parent];
delagators = self.dom[definition.parent];

if (!delagator) continue;
if (!delagators || delagators.length < 0) continue;

if (typeof delagators.length !== 'number') {
delagators = [delagators];
}
} else {
delagator = parent;
delagators = [parent];
}

control = self.getControl(delagator, definition.type, definition.selector);
for (j = 0; (el = delagators[j]); j++) {
control = self.getControl(el, definition.type, definition.selector);

self.controls.push(control);
self.controls.push(control);
}
} else {
controlElements = parent.querySelectorAll(self.config.selectors.control + definition.selector);

for (j = 0; el = controlElements[j]; j++) {
for (j = 0; (el = controlElements[j]); j++) {
control = self.getControl(el, definition.type, '');

if (!control) continue;
Expand Down

0 comments on commit 39d92ae

Please sign in to comment.