Sha256: 3268f5f62e9188ada3894443047d3ffcb8bec58e292180ab6c84df2bc7244374

Contents?: true

Size: 393 Bytes

Versions: 3

Compression:

Stored size: 393 Bytes

Contents

#= require partystreusel/namespace
#= require partystreusel/ie_fixes
class Partystreusel.Base

  @selector: ->
    "[data-streusel-#{@prototype.constructor.name.toLowerCase()}]"

  @init: (element = $('body')) ->
    element.find(@selector())
      .filter (i, el) -> !($(el).data('object')?)
      .map (i, el) => new @(el)

  constructor: (el) ->
    @$el = $(el)
    @$el.data('object', @)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
partystreusel-1.0.6 app/assets/javascripts/partystreusel/base.js.coffee
partystreusel-1.0.5 app/assets/javascripts/partystreusel/base.js.coffee
partystreusel-1.0.4 app/assets/javascripts/partystreusel/base.js.coffee