Check for options before using it, fixes error when un-loading widget

This commit is contained in:
Nathan Gray 2016-04-18 20:48:42 +00:00
parent 0c5486c2d3
commit 9098943dd3

View File

@ -73,7 +73,7 @@ var et2_calendar_owner = (function(){ "use strict"; return et2_taglist_email.ext
selectionRenderer: function(item)
{
if(this.options.allowFreeEntries)
if(this && this.options && this.options.allowFreeEntries)
{
return this._super.apply(this,arguments);
}