fallback for isimage
This commit is contained in:
parent
f97359706a
commit
068ff09cfe
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue