Permalink
Browse files

Merge pull request #60 from swdyh/remove_jquery_obj

removed $ object.
  • Loading branch information...
2 parents 87ca503 + 5b5be6b commit 66b07dd94535dd3d6109a8db233bc42d18261ca1 @keitaf keitaf committed May 18, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 twitter-text.js
View
@@ -497,9 +497,11 @@ if (typeof twttr === "undefined" || twttr === null) {
precedingEllipsis: displayUrl.match(/^/) ? "" : "",
followingEllipsis: displayUrl.match(/$/) ? "" : ""
};
- $.each(v, function(index, value) {
- v[index] = twttr.txt.htmlEscape(value);
- });
+ for (var k in v) {
+ if (v.hasOwnProperty(k)) {
+ v[k] = twttr.txt.htmlEscape(v[k]);
+ }
+ }
// As an example: The user tweets "hi http://longdomainname.com/foo"
// This gets shortened to "hi http://t.co/xyzabc", with display_url = "…nname.com/foo"
// This will get rendered as:

0 comments on commit 66b07dd

Please sign in to comment.