fallback for isimage

This commit is contained in:
Robin Appelman 2015-09-02 19:22:46 +02:00
parent f97359706a
commit 068ff09cfe
1 changed files with 1 additions and 1 deletions

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;
},
/**