Sha256: d1bc1b6f682b875621795301d3bb0a853b0623635ebbb7b359b17bd7b8aba724
Contents?: true
Size: 489 Bytes
Versions: 22
Compression:
Stored size: 489 Bytes
Contents
modularity.closable = constructor: (container) -> close_button = @container.find('.CloseButton') unless close_button?.length > 0 alert 'Error: Close button not found' close_button.click => @close_button_clicked() # Called when the button got clicked by the user or programmatically. close_button_clicked: -> if @closable_closing return unless @closable_closing() @trigger 'closed' @container.remove() @closable_closed() if @closable_closed
Version data entries
22 entries across 22 versions & 1 rubygems