Skip to content

Commit 9e71e53

Browse files
committed
Bumped version number
1 parent f3813c4 commit 9e71e53

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

angular-ui-router-title.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* @link https://github.com/nonplus/angular-ui-router-title
55
*
6-
* @license angular-ui-router-title v0.0.4
6+
* @license angular-ui-router-title v0.1.0
77
* (c) Copyright Stepan Riha <[email protected]>
88
* License MIT
99
*/
@@ -12,6 +12,7 @@
1212

1313
"use strict";
1414
var documentTitleCallback = undefined;
15+
var defaultDocumentTitle = document.title;
1516
angular.module("ui.router.title", ["ui.router"])
1617
.provider("$title", function $titleProvider() {
1718
return {
@@ -40,14 +41,13 @@ angular.module("ui.router.title", ["ui.router"])
4041
}]
4142
};
4243
})
43-
.run(["$rootScope", "$timeout", "$title", function ($rootScope, $timeout, $title) {
44+
.run(["$rootScope", "$timeout", "$title", "$injector", function ($rootScope, $timeout, $title, $injector) {
4445
$rootScope.$on("$stateChangeSuccess", function () {
4546
var title = $title.title();
4647
$timeout(function () {
4748
$rootScope.$title = title;
48-
if (documentTitleCallback) {
49-
document.title = documentTitleCallback(title);
50-
}
49+
var documentTitle = documentTitleCallback ? $injector.invoke(documentTitleCallback) : title || defaultDocumentTitle;
50+
document.title = documentTitle;
5151
});
5252
$rootScope.$breadcrumbs = $title.breadCrumbs();
5353
});

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-ui-router-title",
3-
"version": "0.0.4",
3+
"version": "0.1.0",
44
"homepage": "https://github.com/nonplus/angular-ui-router-title",
55
"authors": [
66
"Stepan Riha <[email protected]>"

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ gulp.task('bump-version', function () {
2323

2424
gulp.task('commit-changes', ['test'], function () {
2525
return gulp.src('.')
26-
.pipe(git.commit('[Prerelease] Bumped version number', {args: '-a'}));
26+
.pipe(git.commit('Bumped version number', {args: '-a'}));
2727
});
2828

2929
gulp.task('tag-version', function() {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-ui-router-title",
3-
"version": "0.0.4",
3+
"version": "0.1.0",
44
"description": "AngularJS module for updating browser title/history based on the current ui-router state.",
55
"main": "angular-ui-router-title.js",
66
"types": "./index.d.ts",

0 commit comments

Comments
 (0)