Skip to content

Instantly share code, notes, and snippets.

@korobochkin
Created August 12, 2014 15:38
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 korobochkin/539dd54e35ec65faafdb to your computer and use it in GitHub Desktop.
Save korobochkin/539dd54e35ec65faafdb to your computer and use it in GitHub Desktop.
Emoji for Candy
"use strict";
var CandyShop = (
function (self) {
return self;
}
(CandyShop || {})
);
CandyShop.Emoji = (function (self, Candy, $) {
self.init = function () {
$(Candy).on ('candy:view.message.before-send', self.view_message_before_send);
}
self.view_message_before_send = function (e, data) {
console.log (e);
console.log (data);
data.message = "гыгы";
return data;
}
return self;
}(CandyShop.Emoji || {}, Candy, jQuery));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment