angular/angular.js — pull request #1008 by alimills (2012-06-01 21:55:57+00:00)
Title: Making rc10's $timeout.cancel() accept a null param like rc9's $defer.cancel() let us do.

With rc9 you could call $defer.cancel() with a null value. With rc10, $defer's replacement $timeout throws an RTE when $timeout.cancel() is called with null.

This diff updates rc10 to behave like rc9 by adding checking to see if a promise is sent to $timeout.cancel() before acting on it.