fixed cap error and requires list

This commit is contained in:
hydrabolt 2015-08-15 15:41:40 +01:00
parent 4e3b6262ca
commit d1ee189208
2 changed files with 3 additions and 1 deletions

View file

@ -1,3 +1,5 @@
var List = require("./list.js").List;
exports.Channel = function(name, server, type, id, isPrivate){
if(!type){ //there's no second argument

View file

@ -21,7 +21,7 @@ exports.List.prototype.add = function( child ) {
function addChild(child){
if(self.length() > cap){
if(self.length() > self.cap){
self.splice(0, 1);
}