Skip to content

Commit a493433

Browse files
committed
#429 some classNames maybe SVGAnimatedStrings and not have trim()
1 parent cd19e7f commit a493433

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gmail.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1582,7 +1582,7 @@ var Gmail_ = function(localJQuery) {
15821582

15831583
// loop through each of the inserted elements classes & check for a defined observer on that class
15841584
var cn = target.className || "";
1585-
var classes = cn.trim().split(/\s+/);
1585+
var classes = cn.trim ? cn.trim().split(/\s+/) : [];
15861586
if(!classes.length) classes.push(""); // if no class, then check for anything observing nodes with no class
15871587
$.each(classes, function(idx, className) {
15881588
var observer = dom_observer_map[className];

0 commit comments

Comments
 (0)