Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion angular-vertilize.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* angular-vertilize 1.0.1
* angular-vertilize 1.0.2
* Christopher Collins
* https://github.com/Sixthdim/angular-vertilize.git
* License: MIT
Expand Down Expand Up @@ -43,6 +43,11 @@
return height;
};

// reApply helper for child directives
_this.reApply = function(){
return $scope.$apply();
};

// Add window resize to digest cycle
angular.element($window).bind('resize', function(){
return $scope.$apply();
Expand Down Expand Up @@ -99,4 +104,17 @@
}
]);

// Vertilize resource
module.directive("vertilizeResource", [function() {
return {
restrict: "A",
require: "^vertilizeContainer",
link: function(scope, element, attrs, parent) {
element.bind('load', function() {
console.log('loaded');
parent.reApply();
});
}
}
}]);
}());
4 changes: 2 additions & 2 deletions angular-vertilize.min.js

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

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"name": "angular-vertilize",
"version": "1.0.0",
"repository": "https://github.com/Sixthdim/angular-vertilize.git"
"version": "1.0.2",
"repository": "https://github.com/Sixthdim/angular-vertilize.git",
"contributors": [{
"name": "Nils Gajsek",
"email": "[email protected]"
}]
}