Skip to content

Commit

Permalink
update version numbers and build
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Provost committed Aug 2, 2016
1 parent f84144c commit 2fa3530
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng-backstretch",
"version": "v0.1.3-beta",
"version": "v0.1.4-beta",
"homepage": "https://github.com/rprovost/ng-backstretch",
"authors": [
"Ryan Provost <[email protected]>"
Expand Down
5 changes: 5 additions & 0 deletions dist/ng-backstretch.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@ directive('backstretch', ['$window', '$timeout', function($window, $timeout) {

// make sure to update the image sizes when the page scales/changes
angular.element($window).bind('resize', scope.resize);

// Unbinds resize listener on $destroy event. It prevents listener to be called, which caused error mentioned in #22
scope.$on('$destroy', function() {
angular.element($window).unbind('resize', scope.resize);
});
}
};
}]);
2 changes: 1 addition & 1 deletion dist/ng-backstretch.min.js

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

Loading

0 comments on commit 2fa3530

Please sign in to comment.