Skip to content

Commit

Permalink
Removed commented out console.log lines. Changed operators in _getDom…
Browse files Browse the repository at this point in the history
…ain function.
  • Loading branch information
necolas committed Mar 10, 2011
1 parent fe5fee9 commit b32e4fa
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions js/custom.js
Expand Up @@ -114,7 +114,6 @@ River.generate = (function () {
function _viewSettings() {
var viewCookie = River.methods.getCookie('river-view');
( viewCookie === 'collapsed' ) ? _collapse() : _expand();
//console.log('_viewSettings');
};

// pass data to template, populate stream, mark last item
Expand All @@ -127,23 +126,20 @@ River.generate = (function () {
$('.last-old').removeClass('last-old');
$stream.find('#' + marker).addClass('last-old');
}
//console.log('_populate');
};

// expand stream items
function _expand() {
River.methods.setCookie('river-view', 'expanded', 30);
$('#stream-view').text('Switch to collapsed view');
$stream.removeClass('collapsed');
//console.log('_expand');
};

// collapse stream items
function _collapse() {
River.methods.setCookie('river-view', 'collapsed', 30);
$('#stream-view').text('Switch to expanded view');
$stream.addClass('collapsed');
//console.log('_collapse');
};

return {
Expand All @@ -157,7 +153,7 @@ River.generate = (function () {
River.methods = (function () {
function _getDomain(url) {
var domain;
if (( url != null ) && (url != "")) {
if (( url !== null ) && (url !== "")) {
domain = url.split('?')[0]; // cleans urls of form http://domain.com?a=1&b=2
domain = domain.split('/')[2];
domain = domain.replace("www.","").replace("www2.", "").replace("feedproxy.", "").replace("feeds.", "");
Expand Down

0 comments on commit b32e4fa

Please sign in to comment.