Skip to content

Commit

Permalink
v0.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatih Kadir Akın committed May 30, 2016
1 parent 1ee991c commit 7d0d620
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bricklayer",
"version": "0.4.2",
"version": "0.4.3",
"authors": [
"Adem İlter <[email protected]>",
"Fatih Kadir Akın <[email protected]>"
Expand Down
6 changes: 3 additions & 3 deletions dist/bricklayer-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,6 @@ var Bricklayer;
Container.prototype.reorderElements = function (columnCount) {
var _this = this;
if (columnCount === void 0) { columnCount = 1; }
if (columnCount == Infinity || columnCount < 1) {
columnCount = 1;
}
var elements = toArray(this.elements).map(function (item) {
var element = item.parentNode ? item.parentNode.removeChild(item) : item;
return element;
Expand All @@ -166,6 +163,9 @@ var Bricklayer;
Container.prototype.getColumnCount = function () {
var containerWidth = this.element.offsetWidth;
var columnWidth = this.ruler.getWidth();
if (columnWidth == 0) {
return 1;
}
return Math.round(containerWidth / columnWidth);
};
Container.prototype.applyPosition = function (pos, column, item) {
Expand Down
6 changes: 3 additions & 3 deletions dist/bricklayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,6 @@ var Bricklayer;
Container.prototype.reorderElements = function (columnCount) {
var _this = this;
if (columnCount === void 0) { columnCount = 1; }
if (columnCount == Infinity || columnCount < 1) {
columnCount = 1;
}
var elements = toArray(this.elements).map(function (item) {
var element = item.parentNode ? item.parentNode.removeChild(item) : item;
return element;
Expand All @@ -167,6 +164,9 @@ var Bricklayer;
Container.prototype.getColumnCount = function () {
var containerWidth = this.element.offsetWidth;
var columnWidth = this.ruler.getWidth();
if (columnWidth == 0) {
return 1;
}
return Math.round(containerWidth / columnWidth);
};
Container.prototype.applyPosition = function (pos, column, item) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bricklayer",
"version": "0.4.2",
"version": "0.4.3",
"description": "Lightweight and strong Masonry alternative",
"main": "dist/bricklayer-node.js",
"scripts": {
Expand Down

0 comments on commit 7d0d620

Please sign in to comment.