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

Commit

Permalink
dataset API fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Kunka committed Dec 16, 2016
1 parent f6810b2 commit 4be4087
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 15 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,9 @@ Change Log

- Added `selectors.controls` configuration option to allow for further specificity of control querying
in addition to the mandatory data attirbutes.
- Fixed package.json issues
- Fixed package.json issues.

## 3.1.1

- Fixed issue where `transitionend` event handlers were not rebound to re-rendered targets during dirtyCheck updates.
- Fixed issue where dataset operation objects where created on push to queue, resulting in corrupted target data.
8 changes: 4 additions & 4 deletions demos/mixitup.min.js

Large diffs are not rendered by default.

14 changes: 10 additions & 4 deletions dist/mixitup.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**!
* MixItUp v3.1.0
* MixItUp v3.1.1
* A high-performance, dependency-free library for animated filtering, sorting and more
* Build d6e794dc-5811-4a4e-a2d9-fd3e620c147d
* Build 089145d5-822b-4610-879b-c9f0026e27a6
*
* @copyright Copyright 2014-2016 KunkaLabs Limited.
* @author KunkaLabs Limited.
Expand Down Expand Up @@ -7558,9 +7558,13 @@

target.data = data;

target.unbindEvents();

self.dom.parent.replaceChild(el, target.dom.el);

target.dom.el = el;

target.bindEvents();
}

el = target.dom.el;
Expand Down Expand Up @@ -8161,7 +8165,7 @@
dataset: function() {
var self = this,
instruction = self.parseDatasetArgs(arguments),
operation = self.getDataOperation(instruction.command.dataset),
operation = null,
queueItem = null,
animate = false;

Expand All @@ -8172,6 +8176,8 @@

animate = (instruction.animate ^ self.config.animation.enable) ? instruction.animate : self.config.animation.enable;

operation = self.getDataOperation(instruction.command.dataset);

return self.goMix(animate, operation);
} else {
queueItem = new mixitup.QueueItem();
Expand Down Expand Up @@ -10370,5 +10376,5 @@
mixitup.registerJqPlugin(jq);
}
mixitup.NAME = 'mixitup';
mixitup.CORE_VERSION = '3.1.0';
mixitup.CORE_VERSION = '3.1.1';
})(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.0",
"version": "3.1.1",
"description": "A high-performance, dependency-free library for animated filtering, sorting and more",
"author": "KunkaLabs Limited",
"homepage": "https://www.kunkalabs.com/mixitup/",
Expand Down
8 changes: 7 additions & 1 deletion src/mixer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2698,9 +2698,13 @@ h.extend(mixitup.Mixer.prototype,

target.data = data;

target.unbindEvents();

self.dom.parent.replaceChild(el, target.dom.el);

target.dom.el = el;

target.bindEvents();
}

el = target.dom.el;
Expand Down Expand Up @@ -3301,7 +3305,7 @@ h.extend(mixitup.Mixer.prototype,
dataset: function() {
var self = this,
instruction = self.parseDatasetArgs(arguments),
operation = self.getDataOperation(instruction.command.dataset),
operation = null,
queueItem = null,
animate = false;

Expand All @@ -3312,6 +3316,8 @@ h.extend(mixitup.Mixer.prototype,

animate = (instruction.animate ^ self.config.animation.enable) ? instruction.animate : self.config.animation.enable;

operation = self.getDataOperation(instruction.command.dataset);

return self.goMix(animate, operation);
} else {
queueItem = new mixitup.QueueItem();
Expand Down

0 comments on commit 4be4087

Please sign in to comment.