Sha256: 74140e2278771454706d9946ecd041ba4b9d7af274c410d533fd90b7ea701ad3

Contents?: true

Size: 428 Bytes

Versions: 8

Compression:

Stored size: 428 Bytes

Contents

Lanes.React.Mixins.Viewport = {

    contextTypes:
        viewport: Lanes.PropTypes.State

    showDialog: (props) ->
        new Promise( (onOk, onCancel) =>
            @context.viewport.modalProps = _.extend({}, props, {show: true, onOk, onCancel})
        )

    hideDialog: ->
        @context.viewport.modal = {show: false}

}

Object.defineProperty Lanes.React.Mixins.Viewport, 'viewport',
    get: -> @context.viewport

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
lanes-0.7.0 client/lanes/react/mixins/Viewport.coffee
lanes-0.6.1 client/lanes/react/mixins/Viewport.coffee
lanes-0.6.0 client/lanes/react/mixins/Viewport.coffee
lanes-0.5.6 client/lanes/react/mixins/Viewport.coffee
lanes-0.5.5 client/lanes/react/mixins/Viewport.coffee
lanes-0.5.0 client/lanes/react/mixins/Viewport.coffee
lanes-0.4.0 client/lanes/react/mixins/Viewport.coffee
lanes-0.3.0 client/lanes/react/mixins/Viewport.coffee