fixed unterminated JS statements + whitespace

This commit is contained in:
Petr Skoda 2010-09-17 11:00:18 +00:00
parent 7de44c66d3
commit f7af9f2e4a
3 changed files with 17 additions and 17 deletions

View file

@ -4,7 +4,7 @@ YUI.add('moodle-block_community-comments', function(Y) {
var COMMENTS = function() {
COMMENTS.superclass.constructor.apply(this, arguments);
}
};
Y.extend(COMMENTS, Y.Base, {

View file

@ -129,7 +129,7 @@ M.block_navigation.classes.tree = function(Y, id, properties) {
if (this.candock) {
this.init(Y, node);
}
}
};
/**
* Loads a branch via AJAX
@ -158,7 +158,7 @@ M.block_navigation.classes.tree.prototype.init_load_ajax = function(e, branch) {
}
});
return true;
}
};
/**
* Takes an branch provided through ajax and loads it into the tree
@ -182,7 +182,7 @@ M.block_navigation.classes.tree.prototype.load_ajax = function(tid, outcome, arg
// The branch is empty so class it accordingly
args.target.replaceClass('branch', 'emptybranch');
return true;
}
};
/**
* Adds a branch into the tree provided with some XML
@ -227,7 +227,7 @@ M.block_navigation.classes.tree.prototype.add_branch = function(branchobj, targe
}
}
return true;
}
};
/**
* Toggle a branch as expanded or collapsed
* @param {Event} e
@ -254,7 +254,7 @@ M.block_navigation.classes.tree.prototype.toggleexpansion = function(e) {
if (this.candock) {
M.core_dock.resize();
}
}
};
/**
* This class represents a branch for a tree
@ -282,7 +282,7 @@ M.block_navigation.classes.branch = function(tree, obj) {
// Construct from the provided xml
this.construct_from_json(obj);
}
}
};
/**
* Populates this branch from a JSON object
* @param {object} obj
@ -301,7 +301,7 @@ M.block_navigation.classes.branch.prototype.construct_from_json = function(obj)
M.block_navigation.expandablebranchcount++;
this.id = 'expandable_branch_'+M.block_navigation.expandablebranchcount;
}
}
};
/**
* Injects a branch into the tree at the given location
* @param {element} element
@ -377,7 +377,7 @@ M.block_navigation.classes.branch.prototype.inject_into_dom = function(element)
element.appendChild(branchli);
return false;
}
}
};
/**
* Causes the navigation block module to initalise the first time the module

View file

@ -38,4 +38,4 @@ M.block_private_files.init_tree = function(Y, expand_all, htmlid) {
tree.render();
});
}
};