Skip to content

Commit

Permalink
call protoCreate; Fixes metafizzy/outlayer#2
Browse files Browse the repository at this point in the history
tick version v1.1.1
  • Loading branch information
desandro committed Sep 5, 2013
1 parent 5d1dbfd commit f1e186b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "packery",
"version": "1.1.0",
"version": "1.1.1",
"author": "David DeSandro / Metafizzy",
"description": "bin-packing layout library",
"main": [
Expand Down
7 changes: 3 additions & 4 deletions js/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 -------------------------- //
Expand Down
2 changes: 1 addition & 1 deletion js/packery.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Packery v1.1.0
* Packery v1.1.1
* bin-packing layout library
* http://packery.metafizzy.co
*
Expand Down

0 comments on commit f1e186b

Please sign in to comment.