Skip to content

Commit 7b75eb5

Browse files
committed
Update
1 parent 9ad5a31 commit 7b75eb5

File tree

16 files changed

+670
-450
lines changed

16 files changed

+670
-450
lines changed

.npmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package-lock=false
2+
optional=false
3+
ignore-prepublish=true

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ sudo: false
33

44
language: node_js
55
node_js:
6-
- "6"
6+
- "8"
77
cache:
88
directories:
99
- node_modules

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright Vasily A., 2015-2017
3+
Copyright Vasilii A., 2015-2018
44
Copyright xixilive, 2013-2015
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy of

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ $("#spinner").spinner('step', function(dir) {
153153

154154
## Copyright and license
155155

156-
Copyright Vasily A., 2015–2017
156+
Copyright Vasilii A., 2015–2018
157157
Copyright xixilive, 2013–2015
158158

159159
Licensed under [the MIT License][license].

bower.json

Lines changed: 0 additions & 36 deletions
This file was deleted.

dist/js/jquery.spinner.js

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* jquery.spinner v0.2.1 (https://vsn4ik.github.io/jquery.spinner/)
3-
* Copyright 2013-2017 xixilive
3+
* Copyright 2013-2018 xixilive
44
* Licensed under the MIT license
55
*/
66
'use strict';
@@ -9,12 +9,10 @@
99
if (typeof define === 'function' && define.amd) {
1010
// AMD. Register as an anonymous module
1111
define(['jquery'], factory);
12-
}
13-
else if (typeof exports === 'object') {
12+
} else if (typeof exports === 'object') {
1413
// Node/CommonJS
1514
module.exports = factory(require('jquery'));
16-
}
17-
else {
15+
} else {
1816
// Browser globals
1917
factory(jQuery);
2018
}
@@ -207,8 +205,7 @@
207205
bindHandler: function(t, fn) {
208206
if ($.isFunction(fn)) {
209207
this.$spinning.on(t, fn);
210-
}
211-
else {
208+
} else {
212209
this.$spinning.off(t);
213210
}
214211
},
@@ -231,11 +228,9 @@
231228
}
232229
if (options === 'delay' || options === 'changed' || options === 'changing') {
233230
data[options](value);
234-
}
235-
else if (options === 'step' && value) {
231+
} else if (options === 'step' && value) {
236232
data.spinning.step = value;
237-
}
238-
else if (options === 'spin' && value) {
233+
} else if (options === 'spin' && value) {
239234
data.spinning.spin(value);
240235
}
241236
});

dist/js/jquery.spinner.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.

docs/example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.css">
1010
<link rel="stylesheet" href="dist/css/bootstrap-spinner.css">
1111

12-
<script src="https://code.jquery.com/jquery-3.2.1.slim.js"></script>
12+
<script src="https://code.jquery.com/jquery-3.3.1.slim.js"></script>
1313
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.js"></script>
1414
<script src="dist/js/jquery.spinner.js"></script>
1515
<script>

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<link rel="stylesheet" href="assets/css/old.css">
1212
<link rel="stylesheet" href="assets/css/docs.css">
1313

14-
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
14+
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
1515
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
1616
<script src="dist/js/jquery.spinner.min.js"></script>
1717
<script>

js/jquery.spinner.js

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* jquery.spinner
33
* https://github.com/vsn4ik/jquery.spinner
4-
* Copyright Vasily A., 2015&ndash;2017
4+
* Copyright Vasilii A., 2015&ndash;2018
55
* Copyright xixilive, 2013&ndash;2015
66
* Licensed under the MIT license
77
*/
@@ -12,12 +12,10 @@
1212
if (typeof define === 'function' && define.amd) {
1313
// AMD. Register as an anonymous module
1414
define(['jquery'], factory);
15-
}
16-
else if (typeof exports === 'object') {
15+
} else if (typeof exports === 'object') {
1716
// Node/CommonJS
1817
module.exports = factory(require('jquery'));
19-
}
20-
else {
18+
} else {
2119
// Browser globals
2220
factory(jQuery);
2321
}
@@ -210,8 +208,7 @@
210208
bindHandler: function(t, fn) {
211209
if ($.isFunction(fn)) {
212210
this.$spinning.on(t, fn);
213-
}
214-
else {
211+
} else {
215212
this.$spinning.off(t);
216213
}
217214
},
@@ -234,11 +231,9 @@
234231
}
235232
if (options === 'delay' || options === 'changed' || options === 'changing') {
236233
data[options](value);
237-
}
238-
else if (options === 'step' && value) {
234+
} else if (options === 'step' && value) {
239235
data.spinning.step = value;
240-
}
241-
else if (options === 'spin' && value) {
236+
} else if (options === 'spin' && value) {
242237
data.spinning.spin(value);
243238
}
244239
});

0 commit comments

Comments
 (0)