This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing 1 changed file with 3 additions and 2 deletions.