timdown/rangy — pull request #231 by peitschie (2014-08-04 05:14:14+00:00)
Title: Auto-initialise rangy even if window load event has already been fired

Fixes an issue where rangy doesn't auto-initialise if loaded *after* the window load event has fired (e.g., when loaded via require.js).

The document readyState seems to have been around for a while (http://msdn.microsoft.com/en-au/library/ie/ms534359%28v=vs.85%29.aspx), so I don't believe this has any backwards compat issues with older IE versions. Worst case, if the property doesn't exist or has an odd string, the code will fall back to waiting for the events (as it does currently).