Skip to content

Commit

Permalink
Code improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
techlab committed Jul 30, 2022
1 parent e76b32b commit d8c7e08
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
6 changes: 2 additions & 4 deletions dist/js/jquery.smartWizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,12 +282,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
value: function _setElements() {
var _this2 = this;

// Set theme option
// Set the main element classes including theme css
this.main.removeClass(function (i, className) {
return (className.match(new RegExp('(^|\\s)' + _this2.options.style.themePrefixCss + '\\S+', 'g')) || []).join(' ');
}).addClass(this.options.style.themePrefixCss + this.options.theme); // Set the main element

this.main.addClass(this.options.style.mainCss).addClass(this.options.style.themePrefixCss + this.options.theme); // Set justify option
}).addClass(this.options.style.mainCss + ' ' + this.options.style.themePrefixCss + this.options.theme); // Set justify option

this.main.toggleClass(this.options.style.justifiedCss, this.options.justified); // Set the anchor default style

Expand Down
Loading

0 comments on commit d8c7e08

Please sign in to comment.