Skip to content

Commit

Permalink
fixes has class browser fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
onefriendaday committed Jul 15, 2018
1 parent c742c90 commit 65e8afa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "storyblok-vue",
"version": "1.0.4",
"version": "1.0.5",
"description": "Storyblok directive for get editable elements.",
"main": "storyblok-vue.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion storyblok-vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var addClass = function(el, className) {
if (el.classList) {
el.classList.add(className)
} else if (!hasClass(el, className)) {
} else if (!new RegExp('\\b'+ className+'\\b').test(el.className)) {
el.className += ' ' + className
}
}
Expand Down
2 changes: 1 addition & 1 deletion vue1/storyblok-vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var addClass = function(el, className) {
if (el.classList) {
el.classList.add(className)
} else if (!hasClass(el, className)) {
} else if (!new RegExp('\\b'+ className+'\\b').test(el.className)) {
el.className += ' ' + className
}
}
Expand Down

0 comments on commit 65e8afa

Please sign in to comment.