Skip to content

Commit

Permalink
chore: release 0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ncuillery committed Aug 9, 2015
1 parent 4e0d649 commit b291e06
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 14 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,12 @@
<a name="0.4.1"></a>
### 0.4.1 (2015-08-09)


#### Features

* 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))


<a name="0.4.0"></a>
### 0.4.0 (2015-05-17)

Expand Down
2 changes: 1 addition & 1 deletion bower.json
@@ -1,7 +1,7 @@
{
"name": "angular-breadcrumb",
"description": "AngularJS module that generates a breadcrumb from ui-router's states",
"version": "0.4.0",
"version": "0.4.1",
"main": "release/angular-breadcrumb.js",
"ignore": [
"sample",
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "angular-breadcrumb",
"description": "AngularJS module that generates a breadcrumb from ui-router's states",
"version": "0.4.0",
"version": "0.4.1",
"homepage": "http://ncuillery.github.io/angular-breadcrumb",
"author": {
"name": "Nicolas Cuillery",
Expand Down
23 changes: 15 additions & 8 deletions release/angular-breadcrumb.js
@@ -1,4 +1,4 @@
/*! angular-breadcrumb - v0.4.0
/*! angular-breadcrumb - v0.4.1
* http://ncuillery.github.io/angular-breadcrumb
* Copyright (c) 2015 Nicolas Cuillery; Licensed MIT */

Expand Down Expand Up @@ -39,7 +39,8 @@ function $Breadcrumb() {
// Early catch of $viewContentLoaded event
$rootScope.$on('$viewContentLoaded', function (event) {
// With nested views, the event occur several times, in "wrong" order
if(isAOlderThanB(event.targetScope.$id, $lastViewScope.$id)) {
if(!event.targetScope.ncyBreadcrumbIgnore &&
isAOlderThanB(event.targetScope.$id, $lastViewScope.$id)) {
$lastViewScope = event.targetScope;
}
});
Expand Down Expand Up @@ -224,8 +225,10 @@ function BreadcrumbDirective($interpolate, $breadcrumb, $rootScope) {
});
};

$rootScope.$on('$viewContentLoaded', function () {
renderBreadcrumb();
$rootScope.$on('$viewContentLoaded', function (event) {
if(!event.targetScope.ncyBreadcrumbIgnore) {
renderBreadcrumb();
}
});

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

$rootScope.$on('$viewContentLoaded', function () {
renderLabel();
$rootScope.$on('$viewContentLoaded', function (event) {
if(!event.targetScope.ncyBreadcrumbIgnore) {
renderLabel();
}
});

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

$rootScope.$on('$viewContentLoaded', function () {
renderLabel();
$rootScope.$on('$viewContentLoaded', function (event) {
if(!event.targetScope.ncyBreadcrumbIgnore) {
renderLabel();
}
});

// View(s) may be already loaded while the directive's linking
Expand Down
4 changes: 2 additions & 2 deletions release/angular-breadcrumb.min.js

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

Binary file removed sample/angular-breadcrumb-0.4.0.zip
Binary file not shown.
Binary file added sample/angular-breadcrumb-0.4.1.zip
Binary file not shown.
4 changes: 2 additions & 2 deletions sample/views/home.html
Expand Up @@ -16,7 +16,7 @@ <h2>Key features</h2>
<a href="https://github.com/ncuillery/angular-breadcrumb" class="btn btn-large">
<img src="img/GitHub-Mark-24px.png" alt="GitHub"/> View on GitHub
</a>
<a href="angular-breadcrumb-0.4.0.zip" class="btn btn-large btn-primary">
<img src="img/download-24px.png" alt="Download"/> Download <small>(0.4.0)</small>
<a href="angular-breadcrumb-0.4.1.zip" class="btn btn-large btn-primary">
<img src="img/download-24px.png" alt="Download"/> Download <small>(0.4.1)</small>
</a>
</div>

0 comments on commit b291e06

Please sign in to comment.