Skip to content

Commit bbdfa30

Browse files
committed
refactor(Calendar): update jQueryInterface
1 parent 182bef4 commit bbdfa30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/src/calendar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -920,11 +920,11 @@ class Calendar extends BaseComponent {
920920
return
921921
}
922922

923-
if (data[config] === undefined || config.startsWith('_') || config === 'constructor') {
923+
if (typeof data[config] === 'undefined') {
924924
throw new TypeError(`No method named "${config}"`)
925925
}
926926

927-
data[config](this)
927+
data[config]()
928928
})
929929
}
930930
}

0 commit comments

Comments
 (0)