Comparing version 0.4.3 to 1.0.0
@@ -21,6 +21,2 @@ 'use strict'; | ||
var _detectie = require('detectie'); | ||
var _detectie2 = _interopRequireDefault(_detectie); | ||
var _Cache = require('./Cache'); | ||
@@ -182,3 +178,2 @@ | ||
this.log = _log2.default; | ||
this.detectie = _detectie2.default; | ||
this.enable = this.enable; | ||
@@ -230,8 +225,2 @@ this.destroy = this.destroy; | ||
} | ||
/** | ||
* disable IE | ||
*/ | ||
if (this.options.disableIE && this.detectie()) { | ||
return; | ||
} | ||
@@ -238,0 +227,0 @@ // variable to keep event listeners from "delegate" |
{ | ||
"name": "swup", | ||
"version": "0.4.3", | ||
"version": "1.0.0", | ||
"description": "Animated page transitions with css.", | ||
@@ -25,4 +25,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"delegate": "^3.1.3", | ||
"detectie": "^1.0.0" | ||
"delegate": "^3.1.3" | ||
}, | ||
@@ -29,0 +28,0 @@ "devDependencies": { |
@@ -8,2 +8,4 @@ # swup | ||
**If you'd like to share your work using swup with me or others, please, drop me a link.** | ||
## Table of contents | ||
@@ -29,3 +31,2 @@ [Introduction](#introduction) | ||
* [Support](#support) | ||
* [Disable IE](#disable-ie) | ||
* [Debug Mode](#debug-mode) | ||
@@ -45,2 +46,4 @@ * [Skip popState Handling](#skip-popstate-handling) | ||
[Contributions](#contributions) | ||
## Introduction | ||
@@ -59,4 +62,2 @@ Swup enables animated transitions between pages powered by CSS. All you need to do is define how your page looks in the transition state, and swup takes care of the rest. Here's a little [preview](https://gmrchk.github.io/swup/). | ||
**Note:** Swup is currently stable and production-ready. However, it is a "one-man show" and any contributions or suggestions are welcome. | ||
## Installation | ||
@@ -279,8 +280,2 @@ ```shell | ||
### Disable IE | ||
While swup itself should run without problem in IE Edge (or other IE with help of some polyfills), I have encountered multiple problems on IE (including Edge) in some particular situations, related to updating browser history, rendering large parts of page replaced with javascript or performance of animation on large elements. That's why swup allows to simply disable the whole thing in all IE browsers with `disableIE` option. This option is intended as a last resort to save your computer from physical damage caused by an angry developer. Swup is enabled in IE by default. | ||
```javasrripts | ||
disableIE: false | ||
``` | ||
### Debug Mode | ||
@@ -469,2 +464,4 @@ Debug mode is useful for integrating swup into your site. When enabled, swup displays emitted events (see [events](#events) section) in the console, as well as contents of the cache when changed. Swup instance is also accessible globally as `window.swup` in debug mode. Option defaults to false. | ||
## Contributions | ||
Swup is currently stable and production-ready. However, it is a "one-man show" and any contributions or suggestions are more than welcome. | ||
@@ -477,4 +474,1 @@ | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
160282
1
37
2688
2
468
- Removeddetectie@^1.0.0
- Removeddetectie@1.0.0(transitive)