Skip to content

Commit

Permalink
v4.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
blivesta committed Nov 13, 2015
1 parent b32518b commit d065ef0
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 13 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## v4.0.1

- Fixed : Safari back button bug. #79 #80 Thanks @nvartolomei

This comment has been minimized.

Copy link
@pfkdesign

pfkdesign Nov 23, 2015

stiil i have problem on that 👎 and using the latest version.

- Fixed : sandbox overlay markup #76
- Added browser-sync to devDependencies


# v4.0.0

- Added `loadingInner` option.
Expand Down
2 changes: 1 addition & 1 deletion dist/css/animsition.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* animsition v4.0.0
* animsition v4.0.1
* A simple and easy jQuery plugin for CSS animated page transitions.
* http://blivesta.github.io/animsition
* License : MIT
Expand Down
4 changes: 2 additions & 2 deletions dist/css/animsition.min.css

Large diffs are not rendered by default.

23 changes: 16 additions & 7 deletions dist/js/animsition.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* animsition v4.0.0
* animsition v4.0.1
* A simple and easy jQuery plugin for CSS animated page transitions.
* http://blivesta.github.io/animsition
* License : MIT
Expand Down Expand Up @@ -96,12 +96,16 @@

if(options.timeout) __.addTimer.call(_this);

$window.on('load.' + namespace + ' pageshow.' + namespace, function() {
if(__.settings.timer) clearTimeout(__.settings.timer);
__.in.call(_this);
});
if(options.onLoadEvent) {
$window.on('load.' + namespace, function() {
if(__.settings.timer) clearTimeout(__.settings.timer);
__.in.call(_this);
});
}

if(!options.onLoadEvent) $window.off('load.' + namespace + ' pageshow.' + namespace);
$window.on('pageshow.' + namespace, function(event) {
if(event.originalEvent.persisted) __.in.call(_this);
});

// Firefox back button issue #4
$window.on('unload.' + namespace, function() { });
Expand Down Expand Up @@ -149,7 +153,7 @@

__.settings.timer = setTimeout(function(){
__.in.call(_this);
$(window).off('load.' + namespace + ' pageshow.' + namespace);
$(window).off('load.' + namespace);
}, options.timeoutCountdown);
},

Expand Down Expand Up @@ -212,9 +216,12 @@
var inDuration = __.animationCheck.call(_this, thisInDuration, false, true);
var inClass = __.animationCheck.call(_this, thisInClass, true, true);
var overlayMode = __.optionCheck.call(_this, options);
var outClass = $this.data(namespace).outClass;

if(options.loading) __.removeLoading.call(_this);

if(outClass) $this.removeClass(outClass);

if(overlayMode) {
__.inOverlay.call(_this, inClass, inDuration);
} else {
Expand Down Expand Up @@ -269,6 +276,8 @@
var outDuration = __.animationCheck.call(_this, isOutDuration, false, false);
var overlayMode = __.optionCheck.call(_this, options);

$this.data(namespace).outClass = outClass;

if(overlayMode) {
__.outOverlay.call(_this, outClass, outDuration, url);
} else {
Expand Down
4 changes: 2 additions & 2 deletions dist/js/animsition.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,6 +1,6 @@
{
"name": "animsition",
"version": "4.0.0",
"version": "4.0.1",
"description": "A simple and easy jQuery plugin for CSS animated page transitions.",
"keywords": [
"css3",
Expand Down

0 comments on commit d065ef0

Please sign in to comment.