Skip to content

Commit

Permalink
Merge pull request #549 from vladrusu/main-patch4
Browse files Browse the repository at this point in the history
jQuery fixes (config was ignored, if given as parameter)
  • Loading branch information
mrholek authored Oct 16, 2024
2 parents e7330b1 + 0cb1c0d commit ee2df5f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion js/src/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ class Calendar extends BaseComponent {

static jQueryInterface(config) {
return this.each(function () {
const data = Calendar.getOrCreateInstance(this)
const data = Calendar.getOrCreateInstance(this, config)

if (typeof config !== 'string') {
return
Expand Down
2 changes: 1 addition & 1 deletion js/src/date-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class DatePicker extends DateRangePicker {

static jQueryInterface(config) {
return this.each(function () {
const data = DatePicker.getOrCreateInstance(this)
const data = DatePicker.getOrCreateInstance(this, config)

if (typeof config !== 'string') {
return
Expand Down
2 changes: 1 addition & 1 deletion js/src/date-range-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ class DateRangePicker extends BaseComponent {

static jQueryInterface(config) {
return this.each(function () {
const data = DateRangePicker.getOrCreateInstance(this)
const data = DateRangePicker.getOrCreateInstance(this, config)

if (typeof config !== 'string') {
return
Expand Down
2 changes: 1 addition & 1 deletion js/src/rating.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ class Rating extends BaseComponent {

static jQueryInterface(config) {
return this.each(function () {
const data = Rating.getOrCreateInstance(this)
const data = Rating.getOrCreateInstance(this, config)

if (typeof config !== 'string') {
return
Expand Down
2 changes: 1 addition & 1 deletion js/src/time-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ class TimePicker extends BaseComponent {

static jQueryInterface(config) {
return this.each(function () {
const data = TimePicker.getOrCreateInstance(this)
const data = TimePicker.getOrCreateInstance(this, config)

if (typeof config !== 'string') {
return
Expand Down

0 comments on commit ee2df5f

Please sign in to comment.