From f1e186bcd109eb6afb4737e25b21579e3d487b2d Mon Sep 17 00:00:00 2001 From: David DeSandro Date: Wed, 4 Sep 2013 21:52:00 -0400 Subject: [PATCH] call protoCreate; Fixes metafizzy/outlayer#2 tick version v1.1.1 --- bower.json | 2 +- js/item.js | 7 +++---- js/packery.js | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/bower.json b/bower.json index 0628600..4525547 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "packery", - "version": "1.1.0", + "version": "1.1.1", "author": "David DeSandro / Metafizzy", "description": "bin-packing layout library", "main": [ diff --git a/js/item.js b/js/item.js index 2d4bee6..826476f 100644 --- a/js/item.js +++ b/js/item.js @@ -19,14 +19,13 @@ var Item = function PackeryItem() { Item.prototype = new Outlayer.Item(); +var protoCreate = Item.prototype._create; Item.prototype._create = function() { + // call default _create logic + protoCreate.call( this ); this.rect = new Rect(); // rect used for placing, in drag or Packery.fit() this.placeRect = new Rect(); - - this.css({ - position: 'absolute' - }); }; // -------------------------- drag -------------------------- // diff --git a/js/packery.js b/js/packery.js index d089233..67a8d2c 100644 --- a/js/packery.js +++ b/js/packery.js @@ -1,5 +1,5 @@ /*! - * Packery v1.1.0 + * Packery v1.1.1 * bin-packing layout library * http://packery.metafizzy.co *