diff options
author | Jed Foster <jed@jedfoster.com> | 2014-02-09 13:17:08 -0800 |
---|---|---|
committer | Jed Foster <jed@jedfoster.com> | 2014-02-09 13:17:08 -0800 |
commit | f9fc0bdaf0f059603e073859d8faa5dfcf3857a0 (patch) | |
tree | 5b441520029d4c532157c6d08a199cf2668cd54c | |
parent | b4ad8a8c76cdd1a66ee26276a7f873b256a700e9 (diff) | |
download | Readmore.js-f9fc0bdaf0f059603e073859d8faa5dfcf3857a0.zip Readmore.js-f9fc0bdaf0f059603e073859d8faa5dfcf3857a0.tar.gz Readmore.js-f9fc0bdaf0f059603e073859d8faa5dfcf3857a0.tar.bz2 |
Code style clean up: replace double-quotes with single-quotes
-rw-r--r-- | readmore.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/readmore.js b/readmore.js index 5a34c89..651cb52 100644 --- a/readmore.js +++ b/readmore.js @@ -46,7 +46,7 @@ else { css.appendChild(d.createTextNode(u)); } - d.getElementsByTagName("head")[0].appendChild(css); + d.getElementsByTagName('head')[0].appendChild(css); }(document, styles)); cssEmbedded = true; @@ -70,11 +70,11 @@ current.addClass('readmore-js-section'); - if(current.css('max-height') != "none") { - current.css("max-height", "none"); + if(current.css('max-height') != 'none') { + current.css("max-height", 'none'); } - current.data("boxHeight", current.outerHeight(true)); + current.data('boxHeight', current.outerHeight(true)); if(current.outerHeight(true) <= maxHeight + hightMargin) { // The block is shorter than the limit, so there's no need to truncate it. @@ -103,7 +103,7 @@ sliderHeight = $(element).data('sliderHeight'); if ($(element).height() == sliderHeight) { - newHeight = $(element).data().boxHeight + "px"; + newHeight = $(element).data().boxHeight + 'px'; newLink = 'lessLink'; more = true; } @@ -116,7 +116,7 @@ // Fire beforeToggle callback $this.options.beforeToggle(trigger, element, more); - $(element).animate({"height": newHeight}, {duration: $this.options.speed, complete: function() { + $(element).animate({'height': newHeight}, {duration: $this.options.speed, complete: function() { // Fire afterToggle callback $this.options.afterToggle(trigger, element, more); |