Change media logic to also support mime=false

This commit is contained in:
Nathan Gray 2015-02-11 21:08:53 +00:00
parent 92c26d156d
commit 8926574a35

View File

@ -381,7 +381,7 @@ function expose (widget)
var self=this;
// If the media type is not supported do not bind the click handler
if (_value && typeof _value.mime != 'undefined' && !_value.mime.match(mime_regex,'ig'))
if (!_value || typeof _value.mime != 'string' || !_value.mime.match(mime_regex,'ig'))
{
return;
}