summaryrefslogtreecommitdiffstats
path: root/readmore.js
diff options
context:
space:
mode:
Diffstat (limited to 'readmore.js')
-rw-r--r--readmore.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/readmore.js b/readmore.js
index 3a993de..8ef94eb 100644
--- a/readmore.js
+++ b/readmore.js
@@ -57,7 +57,7 @@
function uniqueId(prefix) {
var id = ++uniqueIdCounter;
- return String(prefix === null ? 'rmjs-' : prefix) + id;
+ return String(prefix == null ? 'rmjs-' : prefix) + id;
}
function setBoxHeights(element) {
@@ -67,7 +67,7 @@
maxHeight: 'none',
overflow: 'hidden'
}).insertAfter(element),
- expandedHeight = el.outerHeight(true),
+ expandedHeight = el.outerHeight(),
cssMaxHeight = parseInt(el.css({maxHeight: ''}).css('max-height').replace(/[^-\d\.]/g, ''), 10),
defaultHeight = element.data('defaultHeight');