Skip to content

Commit e4736d1

Browse files
committed
fix a syntax issue in calc
1 parent 63e2cf2 commit e4736d1

File tree

12 files changed

+16
-16
lines changed

12 files changed

+16
-16
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Tiny-slider was strongly inspired by [Owl Carousel](https://owlcarousel2.github.
1515
### Fire an issue
1616
We can't test Tiny-slider on every browser and device. There are always some edge cases in which tiny-slider may not run properly. Fire an issue when it doesn't work for you. This not only helps you, also prevent others from facing the same issue.
1717
**Notes for firing issues:**
18-
- Before you fire an issue, make sure you update to the latest version of each main version. (e.g. v2.2.1 for version 2)
18+
- Before you fire an issue, make sure you update to the latest version of each main version. (e.g. v2.2.2 for version 2)
1919
- Provide the OS and browser version.
2020
- Provide a link or your plugin options.
2121

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# tiny-slider 2.0
2-
![version](https://img.shields.io/badge/Version-2.2.1-green.svg)
2+
![version](https://img.shields.io/badge/Version-2.2.2-green.svg)
33
Tiny slider for all purposes, inspired by [Owl Carousel](https://owlcarousel2.github.io/OwlCarousel2/).
44
[Demos](http://ganlanyuan.github.io/tiny-slider/tests/index.html)
55
[Tests](http://ganlanyuan.github.io/tiny-slider/tests/tests.html)
@@ -71,10 +71,10 @@ Note: some features may need a manual test.
7171
##### 1. Include tiny-slider
7272
via [cdnjs](https://cdnjs.com/libraries/tiny-slider):
7373
```html
74-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.2.1/tiny-slider.css">
74+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.2.2/tiny-slider.css">
7575

76-
<!--[if (lt IE 9)]><script src="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.2.1/min/tiny-slider.helper.ie8.js"></script><![endif]-->
77-
<script src="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.2.1/min/tiny-slider.js"></script>
76+
<!--[if (lt IE 9)]><script src="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.2.2/min/tiny-slider.helper.ie8.js"></script><![endif]-->
77+
<script src="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.2.2/min/tiny-slider.js"></script>
7878

7979
<!-- NOTE: from v2.2.1 tiny-slider.js is no longer required to be in <body> -->
8080
```

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tiny-slider",
3-
"version": "2.2.1",
3+
"version": "2.2.2",
44
"homepage": "https://github.com/ganlanyuan/tiny-slider",
55
"authors": [
66
"WilliamLin <ganlanyuan@gmail.com>"

dist/min/tiny-slider.js

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

dist/sourcemaps/tiny-slider.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.

dist/tiny-slider.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function resetFakeBody (body, docOverflow) {
107107
function calc() {
108108
var doc = document,
109109
body = getBody(),
110-
docOverflow = setFakeBody(body);
110+
docOverflow = setFakeBody(body),
111111
div = doc.createElement('div'),
112112
result = false;
113113

@@ -406,7 +406,7 @@ function jsTransform(element, attr, prefix, postfix, to, duration, callback) {
406406
}
407407

408408
// Format: IIFE
409-
// Version: 2.2.1
409+
// Version: 2.2.2
410410

411411
// helper functions
412412
// check browser version and local storage

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tiny-slider",
3-
"version": "2.2.1",
3+
"version": "2.2.2",
44
"description": "Vanilla javascript slider for all purposes, inspired by Owl Carousel.",
55
"main": "dist/tiny-slider.js",
66
"directories": {

src/helpers/calc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { resetFakeBody } from './resetFakeBody';
99
export function calc() {
1010
var doc = document,
1111
body = getBody(),
12-
docOverflow = setFakeBody(body);
12+
docOverflow = setFakeBody(body),
1313
div = doc.createElement('div'),
1414
result = false;
1515

src/tiny-slider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Format: IIFE
2-
// Version: 2.2.1
2+
// Version: 2.2.2
33

44
// helper functions
55
import './helpers/keys';

src/tiny-slider.module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Format: ES MODULE
2-
// Version: 2.2.1
2+
// Version: 2.2.2
33

44
// helper functions
55
import './helpers/keys';

src/tiny-slider.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Version: 2.2.1
1+
// Version: 2.2.2
22

33
.tns-outer {
44
padding: 0 !important; // remove padding: clientWidth = width + padding (0) = width

0 commit comments

Comments
 (0)