Permalink
Browse files

removed $ object.

  • Loading branch information...
swdyh committed May 14, 2012
1 parent 87ca503 commit e05142e3df665c1e1148dc57449ba69b0a6e085d
Showing with 3 additions and 3 deletions.
  1. +3 −3 twitter-text.js
View
@@ -497,9 +497,9 @@ 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) {
+ 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 e05142e

Please sign in to comment.