iaian7 / mediaboxAdvanced

mediabox displays flash, video, audio, & html content in a modal dialog. Based on Slimbox and the Mootools javascript library.
http://iaian7.com/webcode/mediaboxAdvanced
85 stars 29 forks source link

ClickBlock Errors #5

Closed nicekiwi closed 12 years ago

nicekiwi commented 12 years ago

Line 248,

if (options.clickBlock && this.toString().match(/\.gif|\.jpg|\.jpeg|\.png/i)) e.stop();

should be:

if (_options.clickBlock && this.toString().match(/\.gif|\.jpg|\.jpeg|\.png/i)) e.stop();

Changing 'options' to '_options', small typo.

iaian7 commented 12 years ago

Unfortunately, this does not fix the issue, as the _options object is not fully defined until after this segment of code (only once the links are parsed is the options object populated). As an intermediate solution, the option has simply been removed. I hope someone will still be able to step up and help out with creating a new backbone for the script using modern methods, should be a little cleaner!