Skip to content

Commit d8c7e08

Browse files
committed
Code improvements
1 parent e76b32b commit d8c7e08

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

dist/js/jquery.smartWizard.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,12 +282,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
282282
value: function _setElements() {
283283
var _this2 = this;
284284

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

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

0 commit comments

Comments
 (0)