fallback for isimage

This commit is contained in:
Robin Appelman 2015-09-02 19:22:46 +02:00
parent f97359706a
commit 068ff09cfe

View file

@ -58,7 +58,7 @@
* @return {boolean} true if this is an image, false otherwise
*/
isImage: function() {
return this.get('mimetype').substr(0, 6) === 'image/';
return this.get('mimetype')? this.get('mimetype').substr(0, 6) === 'image/' : false;
},
/**