Skip to content

Commit

Permalink
bump version 0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chieffancypants committed Mar 16, 2016
1 parent f325eca commit d734873
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 12 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
Changelog
==========
## 0.9.0
- resolved issue with parentSelector when parent has no children
([#244](https://github.com/chieffancypants/angular-loading-bar/pull/244))
([#251](https://github.com/chieffancypants/angular-loading-bar/issues/251))
([#239](https://github.com/chieffancypants/angular-loading-bar/issues/239))
([#179](https://github.com/chieffancypants/angular-loading-bar/issues/179))
- added style property to package.json
([#271](https://github.com/chieffancypants/angular-loading-bar/pull/271))
([#231](https://github.com/chieffancypants/angular-loading-bar/pull/231))
- Removed duplicated property declaration in CSS
([#226](https://github.com/chieffancypants/angular-loading-bar/pull/226))



## 0.8.0
- auto incrementing is now configurable
([#209](https://github.com/chieffancypants/angular-loading-bar/pull/209))
Expand Down
8 changes: 4 additions & 4 deletions build/loading-bar.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* angular-loading-bar v0.8.0
* angular-loading-bar v0.9.0
* https://chieffancypants.github.io/angular-loading-bar
* Copyright (c) 2015 Wes Cruver
* Copyright (c) 2016 Wes Cruver
* License: MIT
*/

Expand Down Expand Up @@ -105,6 +105,6 @@
100% { -ms-transform: rotate(360deg); transform: rotate(360deg); }
}
@keyframes loading-bar-spinner {
0% { transform: rotate(0deg); transform: rotate(0deg); }
100% { transform: rotate(360deg); transform: rotate(360deg); }
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
22 changes: 17 additions & 5 deletions build/loading-bar.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* angular-loading-bar v0.8.0
* angular-loading-bar v0.9.0
* https://chieffancypants.github.io/angular-loading-bar
* Copyright (c) 2015 Wes Cruver
* Copyright (c) 2016 Wes Cruver
* License: MIT
*/
/*
Expand Down Expand Up @@ -200,23 +200,35 @@ angular.module('cfp.loadingBar', [])
$animate = $injector.get('$animate');
}

var $parent = $document.find($parentSelector).eq(0);
$timeout.cancel(completeTimeout);

// do not continually broadcast the started event:
if (started) {
return;
}

var document = $document[0];
var parent = document.querySelector ?
document.querySelector($parentSelector)
: $document.find($parentSelector)[0]
;

if (! parent) {
parent = document.getElementsByTagName('body')[0];
}

var $parent = angular.element(parent);
var $after = parent.lastChild && angular.element(parent.lastChild);

$rootScope.$broadcast('cfpLoadingBar:started');
started = true;

if (includeBar) {
$animate.enter(loadingBarContainer, $parent, angular.element($parent[0].lastChild));
$animate.enter(loadingBarContainer, $parent, $after);
}

if (includeSpinner) {
$animate.enter(spinner, $parent, angular.element($parent[0].lastChild));
$animate.enter(spinner, $parent, loadingBarContainer);
}

_set(startSize);
Expand Down
6 changes: 3 additions & 3 deletions build/loading-bar.min.js

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

0 comments on commit d734873

Please sign in to comment.