Skip to content

Commit

Permalink
Base class fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dioslaska committed Jan 22, 2015
1 parent 8b79834 commit da14ae0
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions js/mobiscroll.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,14 @@
// Update original user settings
extend(settings, ss);

if (settings.theme === 'auto') {
delete settings.theme;
}
if (that._hasTheme) {
if (settings.theme === 'auto') {
delete settings.theme;
}

if (settings.theme === 'default') {
settings.theme = 'mobiscroll';
if (settings.theme === 'default') {
settings.theme = 'mobiscroll';
}
}

// Load user defaults
Expand Down Expand Up @@ -289,6 +291,8 @@
return that;
};

settings = settings || {};

// Autogenerate id
if (!el.id) {
el.id = 'mobiscroll' + (++id);
Expand Down

0 comments on commit da14ae0

Please sign in to comment.