I'm sure he wasn't. I just don't understand one example from his presentation
http://youtu.be/UTEqr0IlFKY?t=44m
function in_strict_mode() {
return (function () {
return !this;
}());
}
Isn't it the same like this one?
function in_strict_mode() {
return !this;
}
If is_strict_mode()
would me method
then I agree because this
then would point to object containing method, for example
my_object.in_strict_mode = function() {
return (function () {
return !this;
}());
}
But why he did it in his example (which is simple function, not a method of an object)?