Skip to content

Commit

Permalink
version bump, 1.0.1
Browse files Browse the repository at this point in the history
- fixed isInitLayout issue
- updated dependencies to accept latest versions
  • Loading branch information
joshuahiggins committed Jan 13, 2015
1 parent 4ba5690 commit 9f30fbf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-packery",
"version": "1.0.0",
"version": "1.0.1",
"author": "http://github.com/sungard-labs/angular-packery/graphs/contributors",
"homepage": "http://github.com/sungard-labs/angular-packery",
"repository": {
Expand Down
19 changes: 8 additions & 11 deletions dist/packery.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* angular-packery
* http://github.com/sungard-labs/angular-packery
* Version: 1.0.0
* Version: 1.0.1
* License: MIT
*/

Expand Down Expand Up @@ -65,7 +65,7 @@
return packeryObj;
} else {
var interval = $interval(function(){
if (packeryObj !== undefined) {
if (packeryObj !== undefined) {
$interval.cancel(interval);
deferred.resolve(packeryObj);
}
Expand All @@ -75,7 +75,7 @@
$interval.cancel(interval);
deferred.reject(false);
}, config.timeout);

return deferred.promise;
}
}
Expand All @@ -93,7 +93,7 @@
self.packery = {};

this.bindDragEvents = function(el) {
var handleSelector, handle, draggabilly;
var handleSelector, handle, draggabilly;

handleSelector = self.dragHandle;

Expand Down Expand Up @@ -156,7 +156,7 @@

el.css('visibility','visible');
$rootScope.$emit('packeryObjectPacked', el[0]);
});
});
};

this.setDraggable = function (handle) {
Expand Down Expand Up @@ -189,7 +189,7 @@
handle: '@?' // Type: Boolean

// Let's come back to this one...
// stamp: '@?',
// stamp: '@?',
},
link: function (scope, element, attrs, controller) {

Expand All @@ -202,9 +202,6 @@
scope.draggable = scope.draggable || config.draggable;
scope.handle = scope.handle || config.handle;

// Check isInitLayout for falsey
if (scope.isInitLayout === "false") scope.isInitLayout = false;

// Set global draggability
scope.draggable ? controller.setDraggable(scope.handle) : angular.noop();

Expand Down Expand Up @@ -241,15 +238,15 @@
element.css('visibility','hidden');

// Packs individual objects
controller.packObject(element);
controller.packObject(element);
}
};
};

var packeryTemplates = function ($templateCache) {
$templateCache
.put('template/packery/packery.html', [
'<div>',
'<div>',
'<div class="packery-sizer"></div>',
'<div class="packery-container" ng-transclude></div>',
'</div>'
Expand Down
2 changes: 1 addition & 1 deletion dist/packery.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-packery",
"version": "1.0.0",
"version": "1.0.1",
"author": "http://github.com/sungard-labs/angular-packery/graphs/contributors",
"homepage": "http://github.com/sungard-labs/angular-packery",
"repository": {
Expand Down

0 comments on commit 9f30fbf

Please sign in to comment.