Sha256: 943495026657b573ae1b249340649a488dc6433ba7c983f9084970b710bdfede

Contents?: true

Size: 549 Bytes

Versions: 6

Compression:

Stored size: 549 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'

for ns in ['Components', 'Models.Mixins', 'Views.Mixins', 'Screens', 'Vendor', 'Templates', 'Extensions','lib']
    Lanes.namespace(ns)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lanes-0.1.8 client/lanes/lib/namespace.coffee
lanes-0.1.7 client/lanes/lib/namespace.coffee
lanes-0.1.6 client/lanes/lib/namespace.coffee
lanes-0.1.5 client/lanes/lib/namespace.coffee
lanes-0.1.2 client/lanes/lib/namespace.coffee
lanes-0.1.0 client/lanes/lib/namespace.coffee