Created
August 12, 2014 15:38
-
-
Save korobochkin/539dd54e35ec65faafdb to your computer and use it in GitHub Desktop.
Emoji for Candy
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
"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