Skip to content

Commit b291e06

Browse files
committed
chore: release 0.4.1
1 parent 4e0d649 commit b291e06

File tree

8 files changed

+30
-14
lines changed

8 files changed

+30
-14
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
<a name="0.4.1"></a>
2+
### 0.4.1 (2015-08-09)
3+
4+
5+
#### Features
6+
7+
* add the scope-based ncyBreadcrumbIgnore flag ([934c5523](http://github.com/ncuillery/angular-breadcrumb/commit/934c5523208a9615d7cfa3abcb397bbe131332ac), closes [#42](http://github.com/ncuillery/angular-breadcrumb/issues/42), [#62](http://github.com/ncuillery/angular-breadcrumb/issues/42))
8+
9+
110
<a name="0.4.0"></a>
211
### 0.4.0 (2015-05-17)
312

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-breadcrumb",
33
"description": "AngularJS module that generates a breadcrumb from ui-router's states",
4-
"version": "0.4.0",
4+
"version": "0.4.1",
55
"main": "release/angular-breadcrumb.js",
66
"ignore": [
77
"sample",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-breadcrumb",
33
"description": "AngularJS module that generates a breadcrumb from ui-router's states",
4-
"version": "0.4.0",
4+
"version": "0.4.1",
55
"homepage": "http://ncuillery.github.io/angular-breadcrumb",
66
"author": {
77
"name": "Nicolas Cuillery",

release/angular-breadcrumb.js

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! angular-breadcrumb - v0.4.0
1+
/*! angular-breadcrumb - v0.4.1
22
* http://ncuillery.github.io/angular-breadcrumb
33
* Copyright (c) 2015 Nicolas Cuillery; Licensed MIT */
44

@@ -39,7 +39,8 @@ function $Breadcrumb() {
3939
// Early catch of $viewContentLoaded event
4040
$rootScope.$on('$viewContentLoaded', function (event) {
4141
// With nested views, the event occur several times, in "wrong" order
42-
if(isAOlderThanB(event.targetScope.$id, $lastViewScope.$id)) {
42+
if(!event.targetScope.ncyBreadcrumbIgnore &&
43+
isAOlderThanB(event.targetScope.$id, $lastViewScope.$id)) {
4344
$lastViewScope = event.targetScope;
4445
}
4546
});
@@ -224,8 +225,10 @@ function BreadcrumbDirective($interpolate, $breadcrumb, $rootScope) {
224225
});
225226
};
226227

227-
$rootScope.$on('$viewContentLoaded', function () {
228-
renderBreadcrumb();
228+
$rootScope.$on('$viewContentLoaded', function (event) {
229+
if(!event.targetScope.ncyBreadcrumbIgnore) {
230+
renderBreadcrumb();
231+
}
229232
});
230233

231234
// View(s) may be already loaded while the directive's linking
@@ -274,8 +277,10 @@ function BreadcrumbLastDirective($interpolate, $breadcrumb, $rootScope) {
274277
}
275278
};
276279

277-
$rootScope.$on('$viewContentLoaded', function () {
278-
renderLabel();
280+
$rootScope.$on('$viewContentLoaded', function (event) {
281+
if(!event.targetScope.ncyBreadcrumbIgnore) {
282+
renderLabel();
283+
}
279284
});
280285

281286
// View(s) may be already loaded while the directive's linking
@@ -340,8 +345,10 @@ function BreadcrumbTextDirective($interpolate, $breadcrumb, $rootScope) {
340345
scope.ncyBreadcrumbChain = combinedLabels.join(separator);
341346
};
342347

343-
$rootScope.$on('$viewContentLoaded', function () {
344-
renderLabel();
348+
$rootScope.$on('$viewContentLoaded', function (event) {
349+
if(!event.targetScope.ncyBreadcrumbIgnore) {
350+
renderLabel();
351+
}
345352
});
346353

347354
// View(s) may be already loaded while the directive's linking

release/angular-breadcrumb.min.js

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

sample/angular-breadcrumb-0.4.0.zip

-5.55 KB
Binary file not shown.

sample/angular-breadcrumb-0.4.1.zip

5.63 KB
Binary file not shown.

sample/views/home.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h2>Key features</h2>
1616
<a href="https://github.com/ncuillery/angular-breadcrumb" class="btn btn-large">
1717
<img src="img/GitHub-Mark-24px.png" alt="GitHub"/> View on GitHub
1818
</a>
19-
<a href="angular-breadcrumb-0.4.0.zip" class="btn btn-large btn-primary">
20-
<img src="img/download-24px.png" alt="Download"/> Download <small>(0.4.0)</small>
19+
<a href="angular-breadcrumb-0.4.1.zip" class="btn btn-large btn-primary">
20+
<img src="img/download-24px.png" alt="Download"/> Download <small>(0.4.1)</small>
2121
</a>
2222
</div>

0 commit comments

Comments
 (0)