Skip to content

Commit

Permalink
chore: release 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ncuillery committed May 16, 2014
1 parent 01d92ba commit 7b87836
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 8 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<a name="0.2.1"></a>
### 0.2.1 (2014-05-16)


#### Bug Fixes

* **$breadcrumb:** check if a state has a parent when looking for an inheritated property ([77e668b5](http://github.com/ncuillery/angular-breadcrumb/commit/77e668b5eb759570a64c2a885e81580953af3201), closes [#11](http://github.com/ncuillery/angular-breadcrumb/issues/11))


<a name="0.2.0"></a>
## 0.2.0 (2014-05-08)
### 0.2.0 (2014-05-08)


#### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-breadcrumb",
"description": "AngularJS module that generates a breadcrumb from ui-router's states",
"version": "0.2.0",
"version": "0.2.1",
"main": "dist/angular-breadcrumb.js",
"ignore": [
"sample",
Expand Down
7 changes: 4 additions & 3 deletions dist/angular-breadcrumb.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! angular-breadcrumb - v0.2.0 - 2014-05-08
/*! angular-breadcrumb - v0.2.1 - 2014-05-16
* https://github.com/ncuillery/angular-breadcrumb
* Copyright (c) 2014 Nicolas Cuillery; Licensed MIT */

Expand Down Expand Up @@ -28,7 +28,8 @@ function $Breadcrumb() {
// Check if a property in state's data is inherited from the parent state
var $$isInherited = function(state, dataProperty) {
var parentState = $$parentState(state);
return angular.isDefined(parentState.data) &&
return angular.isDefined(parentState) &&
angular.isDefined(parentState.data) &&
angular.isDefined(parentState.data[dataProperty]) &&
angular.equals(state.data[dataProperty], parentState.data[dataProperty]);
};
Expand All @@ -43,7 +44,7 @@ function $Breadcrumb() {
if(compositeName) {
return $state.get(compositeName[1]);
}
return null;
return undefined;
};

// Add the state in the chain if not already in and if not abstract
Expand Down
4 changes: 2 additions & 2 deletions dist/angular-breadcrumb.min.js

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-breadcrumb",
"description": "AngularJS module that generates a breadcrumb from ui-router's states",
"version": "0.2.0",
"version": "0.2.1",
"homepage": "https://github.com/ncuillery/angular-breadcrumb",
"author": {
"name": "Nicolas Cuillery",
Expand Down

0 comments on commit 7b87836

Please sign in to comment.