mikrobi/babel — pull request #82 by Flygenring (2013-10-31 10:16:33+00:00)
Title: Check for resourceId parameter before defaulting.

I had a problem where I had to use Babel from outside any resource and that broke it since current resource ID was fetched before using the passed parameter. This refactoring takes the parameter first and then current resource ID (if a current resource is present).