needim/noty — pull request #144 by jonpacker (2013-06-11 08:34:34+00:00)
Title: Explicitly define `noty` helper on the global scope

Currently the `function noty` line means that the noty helper function will fall into whatever context the script is included in. If the noty helper is explicitly defined on the global scope, it will be accessible globally regardless of what context the script is executed in.

My personal use case for this is using Browserify. Noty is enclosed in its on closure, so the noty helper function becomes inaccessible.