Sha256: a9adfd04210981d19f74d5963a16bd9d1e9ca11b2f2e7874f63a122320cc61d2

Contents?: true

Size: 298 Bytes

Versions: 9

Compression:

Stored size: 298 Bytes

Contents

Lanes.Views.fn = {

    toggleClass: (class_name, selector='')->
        {
            selector: '', elAttribute: 'class', converter:
                (dir,value)-> if value then class_name else ''
        }

    onEnter: (method)->
        (ev)->
            this[method](ev) if 13 == ev.keyCode
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
lanes-0.1.9 client/lanes/views/Functions.coffee
lanes-0.1.8 client/lanes/views/Functions.coffee
lanes-0.1.7 client/lanes/views/Functions.coffee
lanes-0.1.6 client/lanes/views/Functions.coffee
lanes-0.1.5 client/lanes/views/Functions.coffee
lanes-0.1.2 client/lanes/views/Functions.coffee
lanes-0.1.0 client/lanes/views/Functions.coffee
lanes-0.0.8 client/lanes/views/Functions.coffee
lanes-0.0.5 client/lanes/views/Functions.coffee