Closed francescopellegrini closed 11 years ago
Are you sure about the pollution? The variable is declared at the beginning of the plugin function (https://github.com/odyniec/imgareaselect/blob/master/jquery.imgareaselect.dev.js#L124), so this should not happen.
You're right, I completely missed that.. I apologize.
d
variable ends up in the global namespace. This commit fix this behavior by declaring a local variable.