Sha256: e65543a5d8f2e12b16a9378ff833b8a77d40698b3cac1e8292fef9231aadd773

Contents?: true

Size: 285 Bytes

Versions: 1

Compression:

Stored size: 285 Bytes

Contents

OverlayMe.Mixin.Hideable = {

  isDisplayed: ->
    return $o(@el).css('display') != 'none'
  
  toggleDisplay: (default_display_type='block') ->
    if @isDisplayed()
      $o(@el).css { display: 'none' }
    else
      $o(@el).css { display: default_display_type }
    @saveCss()

}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
overlay_me-0.12.1 javascripts/mixins/hideable.js.coffee