Skip to content

Commit 9d2bbf9

Browse files
committed
Release v3.0.10
1 parent 0d59ddb commit 9d2bbf9

File tree

7 files changed

+22
-22
lines changed

7 files changed

+22
-22
lines changed

CHANGES.md

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

3-
## 3.0.10dev
3+
## 3.0.10
44

55
- Update dev dependencies.
66
- Stop using deprecated $.isFunction.

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pwstrength-bootstrap",
3-
"version": "3.0.9",
3+
"version": "3.0.10",
44
"homepage": "https://github.com/ablanco/jquery.pwstrength.bootstrap",
55
"authors": [
66
"Alejandro Blanco <alejandro.b.e@gmail.com>"

dist/pwstrength-bootstrap.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* jQuery Password Strength plugin for Twitter Bootstrap
3-
* Version: 3.0.9
3+
* Version: 3.0.10
44
*
55
* Copyright (c) 2008-2013 Tane Piper
66
* Copyright (c) 2013 Alejandro Blanco
@@ -273,11 +273,11 @@ try {
273273
score = options.rules.scores[rule];
274274
funct = rulesEngine.validation[rule];
275275

276-
if (!$.isFunction(funct)) {
276+
if (typeof funct !== 'function') {
277277
funct = options.rules.extra[rule];
278278
}
279279

280-
if ($.isFunction(funct)) {
280+
if (typeof funct === 'function') {
281281
result = funct(options, word, score);
282282
if (result) {
283283
totalScore += result;
@@ -1028,7 +1028,7 @@ var methods = {};
10281028
} else {
10291029
score = rulesEngine.executeRules(options, word);
10301030
}
1031-
if ($.isFunction(options.common.onScore)) {
1031+
if (typeof options.common.onScore === 'function') {
10321032
score = options.common.onScore(options, word, score);
10331033
}
10341034
}
@@ -1041,7 +1041,7 @@ var methods = {};
10411041
console.log(score + ' - ' + verdictText);
10421042
}
10431043

1044-
if ($.isFunction(options.common.onKeyUp)) {
1044+
if (typeof options.common.onKeyUp === 'function') {
10451045
options.common.onKeyUp(event, {
10461046
score: score,
10471047
verdictText: verdictText,
@@ -1092,7 +1092,7 @@ var methods = {};
10921092
ui.initUI(localOptions, $el);
10931093
$el.trigger('keyup');
10941094

1095-
if ($.isFunction(localOptions.common.onLoad)) {
1095+
if (typeof localOptions.common.onLoad === 'function') {
10961096
localOptions.common.onLoad();
10971097
}
10981098
});
@@ -1157,10 +1157,10 @@ var methods = {};
11571157
ruleFunction = rulesEngine.validation[rule],
11581158
result;
11591159

1160-
if (!$.isFunction(ruleFunction)) {
1160+
if (typeof ruleFunction !== 'function') {
11611161
ruleFunction = options.rules.extra[rule];
11621162
}
1163-
if ($.isFunction(ruleFunction)) {
1163+
if (typeof ruleFunction === 'function') {
11641164
result = ruleFunction(options, $(el).val(), 1);
11651165
if ($.isNumeric(result)) {
11661166
rulesMetCnt += result;

dist/pwstrength-bootstrap.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.

dist/pwstrength-bootstrap.min.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.

examples/pwstrength.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* jQuery Password Strength plugin for Twitter Bootstrap
3-
* Version: 3.0.9
3+
* Version: 3.0.10
44
*
55
* Copyright (c) 2008-2013 Tane Piper
66
* Copyright (c) 2013 Alejandro Blanco
@@ -273,11 +273,11 @@ try {
273273
score = options.rules.scores[rule];
274274
funct = rulesEngine.validation[rule];
275275

276-
if (!$.isFunction(funct)) {
276+
if (typeof funct !== 'function') {
277277
funct = options.rules.extra[rule];
278278
}
279279

280-
if ($.isFunction(funct)) {
280+
if (typeof funct === 'function') {
281281
result = funct(options, word, score);
282282
if (result) {
283283
totalScore += result;
@@ -1028,7 +1028,7 @@ var methods = {};
10281028
} else {
10291029
score = rulesEngine.executeRules(options, word);
10301030
}
1031-
if ($.isFunction(options.common.onScore)) {
1031+
if (typeof options.common.onScore === 'function') {
10321032
score = options.common.onScore(options, word, score);
10331033
}
10341034
}
@@ -1041,7 +1041,7 @@ var methods = {};
10411041
console.log(score + ' - ' + verdictText);
10421042
}
10431043

1044-
if ($.isFunction(options.common.onKeyUp)) {
1044+
if (typeof options.common.onKeyUp === 'function') {
10451045
options.common.onKeyUp(event, {
10461046
score: score,
10471047
verdictText: verdictText,
@@ -1092,7 +1092,7 @@ var methods = {};
10921092
ui.initUI(localOptions, $el);
10931093
$el.trigger('keyup');
10941094

1095-
if ($.isFunction(localOptions.common.onLoad)) {
1095+
if (typeof localOptions.common.onLoad === 'function') {
10961096
localOptions.common.onLoad();
10971097
}
10981098
});
@@ -1157,10 +1157,10 @@ var methods = {};
11571157
ruleFunction = rulesEngine.validation[rule],
11581158
result;
11591159

1160-
if (!$.isFunction(ruleFunction)) {
1160+
if (typeof ruleFunction !== 'function') {
11611161
ruleFunction = options.rules.extra[rule];
11621162
}
1163-
if ($.isFunction(ruleFunction)) {
1163+
if (typeof ruleFunction === 'function') {
11641164
result = ruleFunction(options, $(el).val(), 1);
11651165
if ($.isNumeric(result)) {
11661166
rulesMetCnt += result;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pwstrength-bootstrap",
3-
"version": "3.0.9",
3+
"version": "3.0.10",
44
"description": "jQuery plugin for Twitter Bootstrap that provides rulesets for visualy displaying the quality of a users typed in password.",
55
"author": "Alejandro Blanco <alejandro.b.e@gmail.com>",
66
"homepage": "https://github.com/ablanco/jquery.pwstrength.bootstrap",

0 commit comments

Comments
 (0)