aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/optional/data.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/optional/data.js')
-rw-r--r--src/modules/optional/data.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/optional/data.js b/src/modules/optional/data.js
index 341d129..4c163c0 100644
--- a/src/modules/optional/data.js
+++ b/src/modules/optional/data.js
@@ -15,8 +15,8 @@ export function data (a, v, r) {
} else {
this.attr('data-' + a,
v === null ? null
- : r === true || typeof v === 'string' || typeof v === 'number' ? v
- : JSON.stringify(v)
+ : r === true || typeof v === 'string' || typeof v === 'number' ? v
+ : JSON.stringify(v)
)
}