angular/angular.js — pull request #5788 by Maxim-Filimonov (2014-01-14 12:10:08+00:00)
Title: Ignore module function return value

Fixes the following issue https://groups.google.com/forum/#!topic/angular/gCGF_B4eQkc
I understand it's partially coffee script related. But if the return value is not used anyway I don't see a reason to not just ignore it and replace invoke with noop function call if it's not a function.