linkedin/dustjs — pull request #251 by rrjamie (2013-03-21 22:27:54+00:00)
Title: Ensures `getGlobal` returns correct `dust` object.

In Node.js, `var dust`, in the top-level scope does not declare
a global variable.

This ensures that `global.dust` is the same object as the
`var dust` in the top level scope.

So in situations where `typeof exports` does
not correctly detect Node environments (require.js's build tool
is an example), this ensures `getGlobal` isn't placing half the
code in one object and half in another.