Sha256: 40a845d2a6317e0b0a89043fb45b706db1a7c27c50ed5335b93347244fdb7a3d

Contents?: true

Size: 555 Bytes

Versions: 6

Compression:

Stored size: 555 Bytes

Contents

Luca.DevelopmentToolHelpers = 
  refreshCode: ()->
    view = @

    _( @eventHandlerProperties() ).each (prop)->
      view[ prop ] = view.definitionClass()[prop]

    if @autoBindEventHandlers is true
      @bindAllEventHandlers()

    @delegateEvents()

  eventHandlerProperties: ()->
    handlerIds = _( @events ).values()
    _( handlerIds ).select (v)->
      _.isString(v)

  eventHandlerFunctions: ()->
    handlerIds = _( @events ).values()
    _( handlerIds ).map (handlerId)=>
      if _.isFunction(handlerId) then handlerId else @[handlerId]  

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
luca-0.9.76 src/plugins/development_tool_helpers.coffee
luca-0.9.7 src/plugins/development_tool_helpers.coffee
luca-0.9.65 src/plugins/development_tool_helpers.coffee
luca-0.9.6 src/plugins/development_tool_helpers.coffee
luca-0.9.42 src/plugins/development_tool_helpers.coffee
luca-0.9.4 src/plugins/development_tool_helpers.coffee