Created
May 16, 2017 03:35
-
-
Save goofmint/5f9cc03cd4879b483afeb9903bea57d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
var controller = { | |
__name: 'aController', | |
'#text keyup': function(cotnext, $el) { | |
let text = this.$find("#text").val(); | |
this.trigger('sendMessage', { | |
text: text | |
}) | |
} | |
} | |
h5.core.expose(controller); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment