You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code breaks when a null value is passed in.
Surrounding with a conditional block will fix this.
isTime: function(elem) {
// jQuery's `is()` doesn't play well with HTML5 in IE
return $(elem).get(0).tagName.toLowerCase() === "time"; // $(elem).is("time");
}
The text was updated successfully, but these errors were encountered:
Fair enough, but what scenario are you running into where a null value gets passed to this function? Are you using the isTime or datetime function directly outside of the timeago plugin?
The following code breaks when a null value is passed in.
Surrounding with a conditional block will fix this.
The text was updated successfully, but these errors were encountered: