Skip to content

Instantly share code, notes, and snippets.

@goofmint
Last active August 18, 2016 11:24
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 goofmint/b79486a39422a92d3db6d4046eb43fc1 to your computer and use it in GitHub Desktop.
Save goofmint/b79486a39422a92d3db6d4046eb43fc1 to your computer and use it in GitHub Desktop.
5.md
var controller = {
__name: 'PageController',
:
'.sample-btn click': function(context, $el) {
var direction = $el.data('direction');
var $target = $el.parent();
var arrowbox = this._arrowboxController.create(this.view.get('message'));
arrowbox.show({
target: $target,
direction: direction
});
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment