Skip to content

Instantly share code, notes, and snippets.

@alloy
Created August 21, 2009 19:34
Show Gist options
  • Save alloy/172360 to your computer and use it in GitHub Desktop.
Save alloy/172360 to your computer and use it in GitHub Desktop.
syntax = tag_to_syntax(@syntaxPopup.selectedItem.tag)
cmd = tag_to_syntax(@commandPopup.selectedItem.tag)
if @result
fire_event('onSend', @result, @button, syntax, cmd, @sheet.frame.size, @mode, @short_text)
else
@conn.cancel if @conn
fire_event('onCancel', syntax, cmd, @sheet.contentView.frame.size, @mode, @short_text)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment