Sha256: f3e73a222e5b4fe9480a1e0c539bb877f9b3a7d9787f2d65d801b28c2614c7af
Contents?: true
Size: 670 Bytes
Versions: 2
Compression:
Stored size: 670 Bytes
Contents
#= require partystreusel/namespace #= require partystreusel/ie_fixes class Partystreusel.Base # you must override this class variable # constructor.name does not work in minified js @className = 'Base' @selector: -> prefix = Partystreusel.selectorPrefix || 'streusel' if Streusel.selectorType == 'css_class' ".#{prefix}-#{@className.toLowerCase()}" else "[data-#{prefix}-#{@className.toLowerCase()}]" @init: (element = $('body')) -> element.find(@selector()).addBack(@selector()) .filter (i, el) -> !($(el).data('object')?) .map (i, el) => new @(el) constructor: (el) -> @$el = $(el) @$el.data('object', @)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
partystreusel-1.1.0pre2 | app/assets/javascripts/partystreusel/base.js.coffee |
partystreusel-1.1.0pre1 | app/assets/javascripts/partystreusel/base.js.coffee |