Sha256: 28094863762e4d62186be6652b8e0abf2c0a23a690b9b4b24d25d8c054ebb13b
Contents?: true
Size: 569 Bytes
Versions: 2
Compression:
Stored size: 569 Bytes
Contents
OverlayMe.Mixin.Hideable = { isDisplayed: -> element = @el || this return $o(element).css('display') != 'none' toggleDisplay: (default_display_type='block') -> if @isDisplayed() @hide() else @show(default_display_type) show: (default_display_type='block') -> element = @el || this $o(element).css { display: default_display_type } @saveState() hide: -> element = @el || this $o(element).css { display: 'none' } @saveState() saveState: -> element = @el || this @saveCss(element) if @saveCss }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
overlay_me-0.13.4 | javascripts/coffeescripts/mixins/hideable.js.coffee |
overlay_me-0.13.0 | javascripts/mixins/hideable.js.coffee |