Skip to content

Commit

Permalink
[build] 3.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
karol-f committed Apr 18, 2018
1 parent 03bd1c4 commit b2a74fc
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions dist/vue-custom-element.esm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* vue-custom-element v3.0.3
* vue-custom-element v3.0.4
* (c) 2018 Karol Fabjańczuk
* @license MIT
*/
Expand Down Expand Up @@ -155,9 +155,9 @@ function convertAttributeValue(value, overrideType) {
var valueParsed = parseFloat(propsValue, 10);
var isNumber = !isNaN(valueParsed) && isFinite(propsValue) && !propsValue.match(/^0+[^.]\d*$/g);

if (overrideType) {
if (overrideType && overrideType !== Boolean) {
propsValue = overrideType(value);
} else if (isBoolean) {
} else if (isBoolean || overrideType === Boolean) {
propsValue = propsValue === 'true';
} else if (isNumber) {
propsValue = valueParsed;
Expand Down
6 changes: 3 additions & 3 deletions dist/vue-custom-element.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* vue-custom-element v3.0.3
* vue-custom-element v3.0.4
* (c) 2018 Karol Fabjańczuk
* @license MIT
*/
Expand Down Expand Up @@ -161,9 +161,9 @@ function convertAttributeValue(value, overrideType) {
var valueParsed = parseFloat(propsValue, 10);
var isNumber = !isNaN(valueParsed) && isFinite(propsValue) && !propsValue.match(/^0+[^.]\d*$/g);

if (overrideType) {
if (overrideType && overrideType !== Boolean) {
propsValue = overrideType(value);
} else if (isBoolean) {
} else if (isBoolean || overrideType === Boolean) {
propsValue = propsValue === 'true';
} else if (isNumber) {
propsValue = valueParsed;
Expand Down
4 changes: 2 additions & 2 deletions dist/vue-custom-element.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/demo.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/demo.js.map

Large diffs are not rendered by default.

0 comments on commit b2a74fc

Please sign in to comment.