Permalink
Browse files

I'm anal retentive about consistent use of double quotes

  • Loading branch information...
1 parent 1033d1e commit a7df538960b67355cf08396500bbedcfc2d83281 @rmm5t rmm5t committed Jan 27, 2010
Showing with 143 additions and 143 deletions.
  1. +1 −1 README.markdown
  2. +3 −3 index.html
  3. +4 −4 jquery.timeago.js
  4. +135 −135 test/index.html
View
@@ -15,7 +15,7 @@ Now, let's attach it to your timestamps on DOM ready:
<pre>
jQuery(document).ready(function() {
- jQuery('abbr.timeago').timeago();
+ jQuery("abbr.timeago").timeago();
});
</pre>
View
@@ -11,7 +11,7 @@
<script type="text/javascript">
jQuery(document).ready(function($) {
prepareDynamicDates();
- $('abbr.timeago').timeago();
+ $("abbr.timeago").timeago();
$("#prog_date").text(jQuery.timeago(new Date()));
$("#prog_string").text(jQuery.timeago("2008-07-17"));
@@ -86,7 +86,7 @@
</p>
<pre>
jQuery(document).ready(function() {
- jQuery('abbr.timeago').timeago();
+ jQuery("abbr.timeago").timeago();
});</pre>
<p class="how">
This will turn all <tt>abbr</tt> elements with a class
@@ -157,7 +157,7 @@
</p>
<pre>
jQuery(document).ready(function() {
- jQuery('time.timeago').timeago();
+ jQuery("time.timeago").timeago();
});</pre>
<h3>Huh?</h3>
View
@@ -86,8 +86,8 @@
},
datetime: function(elem) {
// jQuery's `is()` doesn't play well with HTML5 in IE
- var isTime = $(elem).get(0).tagName.toLowerCase() == 'time'; // $(elem).is('time');
- var iso8601 = isTime ? $(elem).attr('datetime') : $(elem).attr('title');
+ var isTime = $(elem).get(0).tagName.toLowerCase() == "time"; // $(elem).is("time");
+ var iso8601 = isTime ? $(elem).attr("datetime") : $(elem).attr("title");
return $t.parse(iso8601);
}
});
@@ -135,6 +135,6 @@
}
// fix for IE6 suckage
- document.createElement('abbr');
- document.createElement('time');
+ document.createElement("abbr");
+ document.createElement("time");
})(jQuery);
Oops, something went wrong.

0 comments on commit a7df538

Please sign in to comment.