angular/angular.js — pull request #1957 by jorgenfb (2013-02-06 11:22:30+00:00)
Title: JQLite.ready() now checks if document already is ready when first called

If you call angular.element(document).ready(...) after the dom is ready, nothing happens. This patch will check the state of the document when ready() is called.

This solution is based on the jQuery.ready() function (https://github.com/jquery/jquery/blob/master/src/core.js#L775)