Skip to content

Conversation

letreset
Copy link

@letreset letreset commented Jul 5, 2017

No description provided.


var url = getURL(el, pluginOptions);
pluginOptions.id = (pluginOptions.id) ? pluginOptions.id : $(el).attr('id');
if (pluginOptions.id == 'undefined')
pluginOptions.id = '';
if (pluginOptions.id === 'undefined')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't it rather be : if (typeof pluginOptions.id === 'undefined')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants