Skip to content

Instantly share code, notes, and snippets.

@nicoespeon
Created March 23, 2016 23:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicoespeon/87e404a2f6e878eb8b94 to your computer and use it in GitHub Desktop.
Save nicoespeon/87e404a2f6e878eb8b94 to your computer and use it in GitHub Desktop.
Blog - Testing Marionette.js Behaviors - instantiated behavior
const ShareView = Marionette.ItemView.extend( {
template: "#card",
behaviors: {
AlertOnShare: {
behaviorClass: AlertBehavior,
title: "Shared",
message: "Your message has been shared!"
}
}
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment