maccman/macgap — pull request #60 by mutru (2012-12-28 09:31:30+00:00)
Title: Hide macgap.notice interface when OS X doesn't support it.

This allows the app to use Notification Center when it's available, but
fall back to Growl messages. The app could also choose to always use the Growl
interface.

To test, create an index.html with something like:

It should behave differently on OS X Mountain Lion and older versions.

Please note that this essentially breaks API compatibility, although I believe the macgap.notice API was never part of an official release.