Skip to content

Commit 84dc901

Browse files
committed
Stable version 1.2.2
- Minor bug fixing
1 parent 792e45c commit 84dc901

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ The library have no opinion about how you lazy load files, and most important
7272
I hope you can appreciate my work and help me to improve this library with your suggestions.
7373
Use it freely as you want!
7474

75-
Copyright (c) 2014 Michael Sogos, released under the MIT license.
75+
Copyright (c) 2014 - 2016 Michael Sogos, released under the MIT license.

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"Michael Sogos <michael.sogos@gurustudioweb.it>",
66
"Anton Rodin <sloot14@gmail.com>"
77
],
8-
"version": "1.2.0",
8+
"version": "1.2.2",
99
"description": "Tiny and lightweight browser router library, developed with SPA in mind :)",
1010
"main": [ "src/hash-router.js", "src/hash-router.min.js", "src/hash-router.min.js.map" ],
1111
"moduleType": [ "globals" ],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"homepage": "https://github.com/michaelsogos/Hash-Router",
44
"author": "Michael Sogos <michael.sogos@gurustudioweb.it>",
55
"contributors": [ "Anton Rodin <sloot14@gmail.com>" ],
6-
"version": "1.2.0",
6+
"version": "1.2.2",
77
"description": "Tiny and lightweight browser router library, developed with SPA in mind :)",
88
"main": "src/hash-router.js",
99
"files": [ "src/hash-router.js", "src/hash-router.min.js", "src/hash-router.min.js.map" ],

src/hash-router.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* hash-router v1.2.0
2+
* hash-router v1.2.2
33
* https://github.com/michaelsogos/Hash-Router
44
*
55
* Developed by Michael Sogos
@@ -38,7 +38,7 @@
3838
"use strict";
3939

4040
(function (global) {
41-
41+
4242
var Router = {
4343
init: function (onRouteChange, onRouteNotFound) {
4444
///<summary>Initialize the router and attach to url change event to the browser.</summary>
@@ -78,7 +78,7 @@
7878
///</summary>
7979
/// <param name="route">The route object.</param>
8080

81-
Router.__eventOnChange(route);
81+
if (Router.__eventOnChange != null) Router.__eventOnChange(route);
8282
Router.__run(route, 'before');
8383
},
8484
add: function (route, overwrite) {

src/hash-router.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.

src/hash-router.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)