Skip to content

Commit

Permalink
Fix lazy load
Browse files Browse the repository at this point in the history
fix #57
  • Loading branch information
mervick committed Sep 17, 2016
1 parent af6a890 commit d4e5367
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 8 deletions.
11 changes: 8 additions & 3 deletions dist/emojionearea.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*!
* EmojioneArea v3.1.4
* EmojioneArea v3.1.5
* https://github.com/mervick/emojionearea
* Copyright Andrey Izman and other contributors
* Released under the MIT license
* Date: 2016-09-07T18:57Z
* Date: 2016-09-17T18:41Z
*/
(function(document, window, $) {
'use strict';
Expand Down Expand Up @@ -661,7 +661,12 @@
items = getRecent();
}

items = shortnameTo(items, self.emojiBtnTemplate, true).split('|').join('');
items = shortnameTo(items,
self.sprite ?
'<i class="emojibtn" role="button" data-name="{name}"><i class="emojione-{uni}"></i></i>' :
'<i class="emojibtn" role="button" data-name="{name}"><img class="emojioneemoji lazy-emoji" data-src="{img}"/></i>',
true).split('|').join('');

category.html(items);
$('<h1/>').text(params.title).prependTo(category);
} while (--skin > 0);
Expand Down
4 changes: 2 additions & 2 deletions dist/emojionearea.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit d4e5367

Please sign in to comment.