Skip to content

Instantly share code, notes, and snippets.

@benlau
Created January 1, 2016 10:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save benlau/6185a05e17f5d8b36f8d to your computer and use it in GitHub Desktop.
Save benlau/6185a05e17f5d8b36f8d to your computer and use it in GitHub Desktop.
Connections {
target: AppDispatcher
onDispatched : {
if (type === ActionTypes.openItem} {
/// Create new window and open item
} else if (type === ActionTypes.askToRemoveItem } {
/// Open a dialog
}
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment