From 8875d021a6012ee0cadff4a2d413bd258e1dfbd0 Mon Sep 17 00:00:00 2001 From: Nawaf Alsulami Date: Wed, 17 Dec 2014 22:43:45 -0600 Subject: [PATCH 1/2] don't add space after last word --- .gitignore | 16 ++++++++++++++++ jquery.lettering.js | 1 + 2 files changed, 17 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0f7d530 --- /dev/null +++ b/.gitignore @@ -0,0 +1,16 @@ + +.idea/.name + +.idea/encodings.xml + +.idea/Lettering.js.iml + +.idea/misc.xml + +.idea/modules.xml + +.idea/scopes/scope_settings.xml + +.idea/vcs.xml + +.idea/workspace.xml diff --git a/jquery.lettering.js b/jquery.lettering.js index 70aae46..397af90 100644 --- a/jquery.lettering.js +++ b/jquery.lettering.js @@ -17,6 +17,7 @@ , inject = ''; if (a.length) { $(a).each(function(i, item) { + after = i == a.length - 1 ? '' : after; // don't add space after last word in the text inject += ''+after; }); t.attr('aria-label',text) From 1ad47520ffa217828ec800dab8aabcad73e9160a Mon Sep 17 00:00:00 2001 From: Nawaf Alsulami Date: Thu, 18 Dec 2014 08:54:15 -0600 Subject: [PATCH 2/2] Delete .gitignore --- .gitignore | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 .gitignore diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 0f7d530..0000000 --- a/.gitignore +++ /dev/null @@ -1,16 +0,0 @@ - -.idea/.name - -.idea/encodings.xml - -.idea/Lettering.js.iml - -.idea/misc.xml - -.idea/modules.xml - -.idea/scopes/scope_settings.xml - -.idea/vcs.xml - -.idea/workspace.xml