Skip to content

Commit

Permalink
version 1.6.0-rc.5
Browse files Browse the repository at this point in the history
  • Loading branch information
chemerisuk committed Jul 9, 2014
1 parent 65e10a5 commit 352da37
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "better-ajaxify",
"version": "1.6.0-rc.4",
"version": "1.6.0-rc.5",
"main": [
"dist/better-ajaxify.js",
"dist/better-ajaxify-pushstate.js",
Expand Down
6 changes: 3 additions & 3 deletions dist/better-ajaxify-hashchange.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file src/better-ajaxify-hashchange.js
* @version 1.6.0-rc.4 2014-05-10T15:50:10
* @version 1.6.0-rc.5 2014-07-09T23:42:36
* @overview Pjax website engine for better-dom
* @copyright Maksim Chemerisuk 2014
* @license MIT
Expand All @@ -9,13 +9,13 @@
(function(DOM, location) {
"use strict";

var baseUrl = location.pathname,
var baseUrl = location.href.split(/[\?#]/)[0],
skipHashchange = false;

DOM.on("ajaxify:loadend", function(response, xhr, target, _, canceled) {
if (!canceled && typeof response === "object") {
// update browser url
if (response.url !== location.hash.replace("#/", "")) {
if (response.url !== location.href.replace("#/", "")) {
skipHashchange = true;

location.hash = response.url.replace(baseUrl, "/");
Expand Down
2 changes: 1 addition & 1 deletion dist/better-ajaxify-pushstate.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file src/better-ajaxify-pushstate.js
* @version 1.6.0-rc.4 2014-05-10T15:50:10
* @version 1.6.0-rc.5 2014-07-09T23:42:36
* @overview Pjax website engine for better-dom
* @copyright Maksim Chemerisuk 2014
* @license MIT
Expand Down
4 changes: 2 additions & 2 deletions dist/better-ajaxify.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file src/better-ajaxify.js
* @version 1.6.0-rc.4 2014-05-10T15:50:10
* @version 1.6.0-rc.5 2014-07-09T23:42:36
* @overview Pjax website engine for better-dom
* @copyright Maksim Chemerisuk 2014
* @license MIT
Expand Down Expand Up @@ -104,7 +104,7 @@

if (typeof query === "string") {
callback = switchContent;
} else {
} else if (typeof query === "function") {
callback = query;
query = null;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "better-ajaxify",
"description": "Pjax website engine for better-dom",
"version": "1.6.0-rc.4",
"version": "1.6.0-rc.5",
"author": "Maksim Chemerisuk",
"license": "MIT",
"repository": {
Expand Down

0 comments on commit 352da37

Please sign in to comment.