Skip to content

Conversation

brettz9
Copy link
Contributor

@brettz9 brettz9 commented Jun 3, 2014

Can just utilize standard in own function since already polyfilled

@jdorn jdorn closed this in fe81013 Jun 8, 2014
@brettz9
Copy link
Contributor Author

brettz9 commented Jun 8, 2014

This is awesome, thanks!

Btw, the reason I added undef to:

(function (undef) {
// Check against "undef" without needing to do a "typeof x === 'undefined'" check
}());

...is because otherwise, browsers not following ES 5 will allow this:

undefined = 5; // This had been allowed!
alert(typeof undefined === 'undefined'); // false!

I could have also done the following:

(function (undefined) {
// Check against "undefined"; it is safe now
}());

@brettz9 brettz9 deleted the custom-event branch July 8, 2014 19:10
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.

1 participant