Skip to content

Commit

Permalink
just minor cleanup stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
honestbleeps committed Mar 9, 2013
1 parent c4e0a3c commit ea04833
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/reddit_enhancement_suite.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ var RESUtils = {
randomHash: function(len) {
var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
var numChars = len || 5;
var randomString;
var randomString = '';
for (var i=0; i<numChars; i++) {
var rnum = Math.floor(Math.random() * chars.length);
randomString += chars.substring(rnum,rnum+1);
Expand Down Expand Up @@ -11722,7 +11722,6 @@ modules['styleTweaks'] = {
var thisExpando = e.target.nextSibling.nextSibling.nextSibling;
if (hasClass(e.target,'collapsed')) {
$(e.target).removeClass('collapsed').addClass('expanded');
console.log(thisExpando);
if (hasClass(thisExpando,'twitterLoaded')) {
thisExpando.style.display = 'block';
return;
Expand Down Expand Up @@ -11974,7 +11973,7 @@ modules['styleTweaks'] = {
this.styleToggleContainer.appendChild(this.styleToggleCheckbox);
insertAfter(subredditTitle, this.styleToggleContainer);
}
this.styleToggleLabel.setAttribute('for',styleCBName);
this.styleToggleLabel.setAttribute('for',styleCBName);
this.styleToggleLabel.textContent = 'Use subreddit style ';
this.styleToggleContainer.appendChild(this.styleToggleLabel);
this.setSRStyleToggleVisibility(true); // no source
Expand Down

0 comments on commit ea04833

Please sign in to comment.