Sha256: d549ca57a99ff9224f46a267a9cc9ffefd9e7698726d9ea99dfdfc5b3ca9a7a0
Contents?: true
Size: 412 Bytes
Versions: 3
Compression:
Stored size: 412 Bytes
Contents
# idea & basic implemntation from https://github.com/jashkenas/coffee-script/wiki/FAQ Lanes.lib ||= {} Lanes.namespace = (target, name, block) -> [target, name, block] = [(if typeof exports isnt 'undefined' then exports else Lanes), arguments...] if arguments.length < 3 top = target target = target[item] or= {} for item in name.split '.' block( target, top ) if typeof block == 'function'
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lanes-0.0.3 | client/javascripts/lib/namespace.coffee |
lanes-0.0.2 | client/javascripts/lib/namespace.coffee |
lanes-0.0.1 | client/javascripts/lib/namespace.coffee |