maccman/spine — Issue #160: guid() isn't exposed globally (Spine.guid() doesn 't exist)
Author: gbrits
Created: 2011-12-13 16:38:05+00:00
State: open

I might be missing something obvious here, but I want to get a hold of guid() by doing Spine.guid(). However it isn't exposed globally. When looking on the net, I've seen people using Spine.guid() but that's around july 2011, so perhaps this was missed with porting to Coffeescript?

When browsing the code (spine.coffee, line 474)

# Globals
Spine = @Spine = {}
module?.exports = Spine

Spine.version = '1.0.5'
Spine.isArray = isArray
Spine.isBlank = isBlank
...

of course the fix is trivial:
Spine.guid = guid

I'm not familiar with github yet to 'issue' a pull request.
hth,
Geert-Jan