1
0
mirror of https://github.com/twitter/twemoji.git synced 2024-10-02 21:02:03 +00:00

modified reset during the loop

This commit is contained in:
Andrea Giammarchi 2015-03-12 23:30:00 +00:00
parent fe1c85aef0
commit c42a15bca1
7 changed files with 11 additions and 7 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "twemoji", "name": "twemoji",
"description": "A Unicode standard based way to implement emoji across all platforms.", "description": "A Unicode standard based way to implement emoji across all platforms.",
"version": "v1.3.0", "version": "v1.3.1",
"main": "./twemoji.amd.js", "main": "./twemoji.amd.js",
"ignore": [ "ignore": [
".git", ".git",

View File

@ -1,5 +1,5 @@
{ {
"version": "1.3.0", "version": "1.3.1",
"name": "twemoji", "name": "twemoji",
"license": ["MIT", "CC-BY-4.0"], "license": ["MIT", "CC-BY-4.0"],
"description": "A Unicode standard based way to implement emoji across all platforms.", "description": "A Unicode standard based way to implement emoji across all platforms.",

View File

@ -1,5 +1,5 @@
{ {
"version": "1.3.0", "version": "1.3.1",
"name": "twemoji", "name": "twemoji",
"license": ["MIT", "CC-BY-4.0"], "license": ["MIT", "CC-BY-4.0"],
"description": "A Unicode standard based way to implement emoji across all platforms.", "description": "A Unicode standard based way to implement emoji across all platforms.",

View File

@ -604,7 +604,7 @@ function createTwemoji(re) {
var var
allText = grabAllTextNodes(node, []), allText = grabAllTextNodes(node, []),
length = allText.length, length = allText.length,
modified = false, modified,
fragment, fragment,
subnode, subnode,
text, text,
@ -617,6 +617,7 @@ function createTwemoji(re) {
variant, variant,
src; src;
while (length--) { while (length--) {
modified = false;
fragment = document.createDocumentFragment(); fragment = document.createDocumentFragment();
subnode = allText[length]; subnode = allText[length];
text = subnode.nodeValue; text = subnode.nodeValue;

View File

@ -327,7 +327,7 @@ define(function () {
var var
allText = grabAllTextNodes(node, []), allText = grabAllTextNodes(node, []),
length = allText.length, length = allText.length,
modified = false, modified,
fragment, fragment,
subnode, subnode,
text, text,
@ -340,6 +340,7 @@ define(function () {
variant, variant,
src; src;
while (length--) { while (length--) {
modified = false;
fragment = document.createDocumentFragment(); fragment = document.createDocumentFragment();
subnode = allText[length]; subnode = allText[length];
text = subnode.nodeValue; text = subnode.nodeValue;

View File

@ -326,7 +326,7 @@ var twemoji = (function (
var var
allText = grabAllTextNodes(node, []), allText = grabAllTextNodes(node, []),
length = allText.length, length = allText.length,
modified = false, modified,
fragment, fragment,
subnode, subnode,
text, text,
@ -339,6 +339,7 @@ var twemoji = (function (
variant, variant,
src; src;
while (length--) { while (length--) {
modified = false;
fragment = document.createDocumentFragment(); fragment = document.createDocumentFragment();
subnode = allText[length]; subnode = allText[length];
text = subnode.nodeValue; text = subnode.nodeValue;

View File

@ -327,7 +327,7 @@ var twemoji = (function (
var var
allText = grabAllTextNodes(node, []), allText = grabAllTextNodes(node, []),
length = allText.length, length = allText.length,
modified = false, modified,
fragment, fragment,
subnode, subnode,
text, text,
@ -340,6 +340,7 @@ var twemoji = (function (
variant, variant,
src; src;
while (length--) { while (length--) {
modified = false;
fragment = document.createDocumentFragment(); fragment = document.createDocumentFragment();
subnode = allText[length]; subnode = allText[length];
text = subnode.nodeValue; text = subnode.nodeValue;