Skip to content

Commit

Permalink
Merge branch 'v3' of https://github.com/craftcms/cms into develop
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/web/assets/garnish/dist/garnish.js
#	src/web/assets/garnish/dist/garnish.js.map
  • Loading branch information
brandonkelly committed May 19, 2022
2 parents c057311 + 41e016e commit 41cba59
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/web/assets/garnish/dist/garnish.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/garnish/dist/garnish.js.map

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion src/web/assets/garnish/src/Base.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,12 @@ export default Base.extend({
for (i = 0; i < Garnish._eventHandlers.length; i++) {
handler = Garnish._eventHandlers[i];

if (this instanceof handler.target && handler.type === type) {
if (
handler &&
handler.target &&
this instanceof handler.target &&
handler.type === type
) {
_ev = $.extend({data: handler.data}, data, ev);
handler.handler(_ev);
}
Expand Down

0 comments on commit 41cba59

Please sign in to comment.