Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit b5d6ec3

Browse files
committed
Widget: Fix backcompat to not check for existence of key
1 parent 6fdf536 commit b5d6ec3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

js/widgets/widget.backcompat.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ if ( $.mobileBackcompat !== false ) {
9797
prop = this.classProp,
9898
that = this;
9999

100-
if ( prop && typeof original.classes[ prop ] === "string" &&
101-
typeof this.options.classes[ prop ] === "string" ) {
100+
if ( prop && typeof this.options.classes[ prop ] === "string" ) {
102101
currentClasses = this.options.classes[ prop ].match( classSplitterRegex ) || [];
103102

104103
// If the classes option value has diverged from the default, then its value takes

0 commit comments

Comments
 (0)