Please sign in to comment.
Make sure body is defined before attempting to use its properties. Th…
…is check prevents an error from occurring when the width() or height() methods are called before the body is defined in browsers that return false on the first condition and proceed on to the second. For example, simply calling $( window ).width() from a script in the HEAD will throw an error in Nokia webkit browsers without this check in place.
- Loading branch information