jmadler / emoji-picker

Add a slick emoji selector to input fields and textareas on your website.
Other
1.31k stars 318 forks source link

what is happend in emoji-picker.js #71

Closed Nalofree closed 7 years ago

Nalofree commented 7 years ago
`(function() {
  console.log($.emojiarea); //object - ok
  this.EmojiPicker = (function() {
    console.log($.emojiarea); //object - ok
    function EmojiPicker(options) {
      console.log($.emojiarea); //undefined
      var ref, ref1;
      if (options == null) {
        options = {};
      }
      console.log($.emojiarea);
      $.emojiarea.iconSize = (ref = options.iconSize) != null ? ref : 25;
      $.emojiarea.assetsPath = (ref1 = options.assetsPath) != null ? ref1 : '';
      this.generateEmojiIconSets(options);
      if (!options.emojiable_selector) {
        options.emojiable_selector = '[data-emojiable=true]';
      }
      this.options = options;
    }`