Skip to content

Commit

Permalink
refactor: use Array.isArray instead of deprecated $.isArray
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-D committed Jan 16, 2023
1 parent d2c19d7 commit e66f9ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trumbowyg.js
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ Object.defineProperty(jQuery.trumbowyg, 'defaultOptions', {
});

$.each(t.o.btns, function (i, btnGrp) {
if (!$.isArray(btnGrp)) {
if (!Array.isArray(btnGrp)) {
btnGrp = [btnGrp];
}

Expand Down

0 comments on commit e66f9ee

Please sign in to comment.