Change media logic to also support mime=false

This commit is contained in:
Ralf Becker 2015-02-12 08:36:42 +00:00
parent 5281afe124
commit 64b4ca3b5a

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;
}