Skip to content

Commit dc62c72

Browse files
committed
Add null check for $ripple
1 parent 139a9e4 commit dc62c72

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

dist/js/ripples.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ window.ripples = {
144144
// Destroy ripple when mouse is not holded anymore if the ripple still exists
145145
bind("mouseup", ".ripple-wrapper", function() {
146146
var $ripple = $ripplecache;
147-
if ($ripple.dataset.animating != 1) {
147+
if ($ripple && $ripple.dataset.animating != 1) {
148148
rippleOut($ripple);
149149
}
150150
});

dist/js/ripples.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/ripples.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ window.ripples = {
144144
// Destroy ripple when mouse is not holded anymore if the ripple still exists
145145
bind("mouseup", ".ripple-wrapper", function() {
146146
var $ripple = $ripplecache;
147-
if ($ripple.dataset.animating != 1) {
147+
if ($ripple && $ripple.dataset.animating != 1) {
148148
rippleOut($ripple);
149149
}
150150
});

template/material/js/ripples.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ window.ripples = {
144144
// Destroy ripple when mouse is not holded anymore if the ripple still exists
145145
bind("mouseup", ".ripple-wrapper", function() {
146146
var $ripple = $ripplecache;
147-
if ($ripple.dataset.animating != 1) {
147+
if ($ripple && $ripple.dataset.animating != 1) {
148148
rippleOut($ripple);
149149
}
150150
});

template/material/js/ripples.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)