Skip to content
This repository was archived by the owner on Sep 23, 2025. It is now read-only.

Commit d734873

Browse files
bump version 0.9.0
1 parent f325eca commit d734873

File tree

4 files changed

+38
-12
lines changed

4 files changed

+38
-12
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
Changelog
22
==========
3+
## 0.9.0
4+
- resolved issue with parentSelector when parent has no children
5+
([#244](https://github.com/chieffancypants/angular-loading-bar/pull/244))
6+
([#251](https://github.com/chieffancypants/angular-loading-bar/issues/251))
7+
([#239](https://github.com/chieffancypants/angular-loading-bar/issues/239))
8+
([#179](https://github.com/chieffancypants/angular-loading-bar/issues/179))
9+
- added style property to package.json
10+
([#271](https://github.com/chieffancypants/angular-loading-bar/pull/271))
11+
([#231](https://github.com/chieffancypants/angular-loading-bar/pull/231))
12+
- Removed duplicated property declaration in CSS
13+
([#226](https://github.com/chieffancypants/angular-loading-bar/pull/226))
14+
15+
16+
317
## 0.8.0
418
- auto incrementing is now configurable
519
([#209](https://github.com/chieffancypants/angular-loading-bar/pull/209))

build/loading-bar.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
2-
* angular-loading-bar v0.8.0
2+
* angular-loading-bar v0.9.0
33
* https://chieffancypants.github.io/angular-loading-bar
4-
* Copyright (c) 2015 Wes Cruver
4+
* Copyright (c) 2016 Wes Cruver
55
* License: MIT
66
*/
77

@@ -105,6 +105,6 @@
105105
100% { -ms-transform: rotate(360deg); transform: rotate(360deg); }
106106
}
107107
@keyframes loading-bar-spinner {
108-
0% { transform: rotate(0deg); transform: rotate(0deg); }
109-
100% { transform: rotate(360deg); transform: rotate(360deg); }
108+
0% { transform: rotate(0deg); }
109+
100% { transform: rotate(360deg); }
110110
}

build/loading-bar.js

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
2-
* angular-loading-bar v0.8.0
2+
* angular-loading-bar v0.9.0
33
* https://chieffancypants.github.io/angular-loading-bar
4-
* Copyright (c) 2015 Wes Cruver
4+
* Copyright (c) 2016 Wes Cruver
55
* License: MIT
66
*/
77
/*
@@ -200,23 +200,35 @@ angular.module('cfp.loadingBar', [])
200200
$animate = $injector.get('$animate');
201201
}
202202

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

206205
// do not continually broadcast the started event:
207206
if (started) {
208207
return;
209208
}
210209

210+
var document = $document[0];
211+
var parent = document.querySelector ?
212+
document.querySelector($parentSelector)
213+
: $document.find($parentSelector)[0]
214+
;
215+
216+
if (! parent) {
217+
parent = document.getElementsByTagName('body')[0];
218+
}
219+
220+
var $parent = angular.element(parent);
221+
var $after = parent.lastChild && angular.element(parent.lastChild);
222+
211223
$rootScope.$broadcast('cfpLoadingBar:started');
212224
started = true;
213225

214226
if (includeBar) {
215-
$animate.enter(loadingBarContainer, $parent, angular.element($parent[0].lastChild));
227+
$animate.enter(loadingBarContainer, $parent, $after);
216228
}
217229

218230
if (includeSpinner) {
219-
$animate.enter(spinner, $parent, angular.element($parent[0].lastChild));
231+
$animate.enter(spinner, $parent, loadingBarContainer);
220232
}
221233

222234
_set(startSize);

build/loading-bar.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)