Sha256: 5538b7dd4b955309ce719602fdaeeca6b56703db39d8e03bdbb087f96f7f4097

Contents?: true

Size: 1.47 KB

Versions: 2

Compression:

Stored size: 1.47 KB

Contents

#*************************************************************************************
# TOCOMMENT
#*************************************************************************************
class @OrbitSlider
  constructor: (@holder) ->
    # DEPRECATED IN VERSION 4
    #@holder.orbit @buildAttributes()


  buildAttributes: () ->
    {
      advanceSpeed:               @getAttr('advance-speed'),
      animation:                  @getAttr('animation'),
      animationSpeed:             @getAttr('animation-speed'),
      bulletThumbLocation:        @getAttr('bullet-thumb-location'),
      bulletThumbs:               @getBoolAttr('bullet-thumbs'),
      bullets:                    @getBoolAttr('bullets'),
      captionAnimation:           @getAttr('caption-animation'),
      captionAnimationSpeed:      @getAttr('caption-animation-speed'),
      captions:                   @getBoolAttr('captions'),
      directionalNav:             @getBoolAttr('directional-nav'),
      fluid:                      @getAttr('fluid'),
      pauseOnHover:               @getBoolAttr('pause-on-hover'),
      resetTimerOnClick:          @getBoolAttr('reset-timer-on-click'),
      startClockOnMouseOut:       @getBoolAttr('start-clock-on-mouse-out'),
      startClockOnMouseOutAfter:  @getAttr('start-clock-on-mouse-out-after'),
      timer:                      @getBoolAttr('timer')
    }

  getAttr: (name) -> @holder.data(name),

  getBoolAttr: (name) -> if String(@holder.data(name)) is '1' then true else false



Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
caisson-0.0.3 app/assets/javascripts/caisson/orbit-slider.coffee
caisson-0.0.2 app/assets/javascripts/caisson/orbit-slider.coffee