Going around Modernizr source code I have found strange thing:
window.Modernizr = (function(window,document,undefined) {
After that this function will be called with two arguments (this, this.document
).
Why undefined
is used here? Is it meaningful or it's just strange code-style?