Skip to content

Commit 4b560aa

Browse files
author
kaptinlin
committed
Release v0.4.1
1 parent 89bf243 commit 4b560aa

File tree

12 files changed

+19
-20
lines changed

12 files changed

+19
-20
lines changed

.eslintrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ rules:
6060
# Best Practices
6161
accessor-pairs: "error"
6262
block-scoped-var: "error"
63-
consistent-return: "error"
63+
consistent-return: "off"
6464
curly: "error"
6565
default-case: "error"
6666
dot-location: "off"

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jquery-asSpinner",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "A jquery plugin that convent a input into spinner that allows you to spin numbers with button.",
55
"main": "dist/jquery-asSpinner.js",
66
"copyright": "amazingSurge",

dist/css/asSpinner.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* jQuery asSpinner v0.4.0
2+
* jQuery asSpinner v0.4.1
33
* https://github.com/amazingSurge/jquery-asSpinner
44
*
55
* Copyright (c) amazingSurge

dist/css/asSpinner.min.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* jQuery asSpinner v0.4.0
2+
* jQuery asSpinner v0.4.1
33
* https://github.com/amazingSurge/jquery-asSpinner
44
*
55
* Copyright (c) amazingSurge

dist/jquery-asSpinner.es.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* jQuery asSpinner v0.4.0
2+
* jQuery asSpinner v0.4.1
33
* https://github.com/amazingSurge/jquery-asSpinner
44
*
55
* Copyright (c) amazingSurge
@@ -421,7 +421,7 @@ class asSpinner {
421421
}
422422

423423
var info = {
424-
version:'0.4.0'
424+
version:'0.4.1'
425425
};
426426

427427
const NAMESPACE = 'asSpinner';
@@ -433,7 +433,7 @@ const jQueryAsSpinner = function(options, ...args) {
433433

434434
if (/^_/.test(method)) {
435435
return false;
436-
} else if ((/^(get)/.test(method))) {
436+
} else if ((/^(get)$/.test(method)) || (method === 'val' && method_arguments.length === 0)) {
437437
const instance = this.first().data(NAMESPACE);
438438
if (instance && typeof instance[method] === 'function') {
439439
return instance[method](...args);

dist/jquery-asSpinner.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* jQuery asSpinner v0.4.0
2+
* jQuery asSpinner v0.4.1
33
* https://github.com/amazingSurge/jquery-asSpinner
44
*
55
* Copyright (c) amazingSurge
@@ -600,7 +600,7 @@
600600
}();
601601

602602
var info = {
603-
version: '0.4.0'
603+
version: '0.4.1'
604604
};
605605

606606
var NAMESPACE = 'asSpinner';
@@ -622,7 +622,7 @@
622622
return {
623623
v: false
624624
};
625-
} else if (/^(get)/.test(method)) {
625+
} else if (/^(get)$/.test(method) || method === 'val' && method_arguments.length === 0) {
626626
var instance = _this2.first().data(NAMESPACE);
627627

628628
if (instance && typeof instance[method] === 'function') {

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

examples/js/jquery.toc.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* jquery.toc.js - A jQuery plugin that will automatically generate a table of contents.
2+
* jquery.toc.js - A jQuery plugin that will automatically generate a table of contents.
33
* v0.1.1
44
* https://github.com/jgallen23/toc
55
* copyright JGA 2012
@@ -40,7 +40,7 @@ $.fn.toc = function(options) {
4040
e.preventDefault();
4141
var elScrollTo = $(e.target).attr('href');
4242
var $el = $(elScrollTo);
43-
43+
4444
scrollable.animate({ scrollTop: $el.offset().top }, 400, 'swing', function() {
4545
location.hash = elScrollTo;
4646
});
@@ -88,7 +88,7 @@ $.fn.toc = function(options) {
8888
var a = $('<a/>')
8989
.text(opts.headerText(i, heading, $h))
9090
.attr('href', '#' + opts.anchorName(i, heading, opts.prefix))
91-
.bind('click', function(e) {
91+
.bind('click', function(e) {
9292
scrollTo(e);
9393
el.trigger('selected', $(this).attr('href'));
9494
});

gulp/tasks/assets.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
import config from '../../config';
44
import merge from 'merge-stream';
5-
import gulp from 'gulp';
6-
import browser from 'browser-sync';
5+
import gulp from 'gulp';this
76
import notify from 'gulp-notify';
87
import AssetsManager from 'assets-manager';
98
import argv from 'argv';

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "jquery-asSpinner",
33
"title": "jQuery asSpinner",
44
"description": "A jquery plugin that convent a input into spinner that allows you to spin numbers with button.",
5-
"version": "0.4.0",
5+
"version": "0.4.1",
66
"homepage": "https://github.com/amazingSurge/jquery-asSpinner",
77
"author": {
88
"name": "amazingSurge",

0 commit comments

Comments
 (0)