Closed Shoplifter closed 9 years ago
Side effects in initialization of unused variable instanceOf
This is because we use var instanceOf = this.instanceOf = function(item, object){
in Core.js and Uglify probably reacts to the first assignment of this "double assign", since this.instanceOf
is not defined before that line.
Using
var instanceOf;
instanceOf = this.instanceOf = function(item, object){
will not generate the warning, which made me reach the conclusion above.
Dropping unused function borderBox
borderBox
is a private function used in Element.Dimentions in the compat layer. We could add a comment block around this code so it would not be present in the no-compat build.
Having this said, I think its safe to ignore those warnings.
thank you for digging into this and providing comprehensive answer.
when i minify mootools-core 1.5.1 using uglify.js i get this error message:
dont know what that means, any idea?