jrburke/backbone — comment on commit 57c2029117649452c6cf4d3337e03f5d52bb8331
File: backbone.js line 27
By jrburke:

Yes, this is common in AMD loaders, it is part of the AMD spec, there is a compliance test for it. In addition, the particular kind of boilerplate style used in this patch has been discussed on the amd-implement list with other AMD implementers. There are some AMD tools, like the [almond API shim](https://github.com/jrburke/almond) that do not do toString scanning, but they assume a "built/optimized" format, where an AMD optimizer has already parsed out the dependencies and added them to the define call.