apply jshint on weechat

This commit is contained in:
David Cormier 2013-12-16 07:55:20 -05:00
parent 72b0aaddd3
commit 6562ce22b4

View file

@ -120,7 +120,7 @@
type: 'weechat', type: 'weechat',
name: 'default' name: 'default'
}; };
} };
/** /**
* Gets the default attributes. * Gets the default attributes.
@ -137,7 +137,7 @@
'underline': false 'underline': false
} }
}; };
} };
/** /**
* Gets the default style (default colors and attributes). * Gets the default style (default colors and attributes).
@ -150,7 +150,7 @@
bgColor: WeeChatProtocol._getDefaultColor(), bgColor: WeeChatProtocol._getDefaultColor(),
attrs: WeeChatProtocol._getDefaultAttributes() attrs: WeeChatProtocol._getDefaultAttributes()
}; };
} };
/** /**
* Clones a color object. * Clones a color object.
@ -166,7 +166,7 @@
} }
return clone; return clone;
} };
/** /**
* Clones an attributes object. * Clones an attributes object.
@ -184,7 +184,7 @@
} }
return clone; return clone;
} };
/** /**
* Gets the name of an attribute from its character. * Gets the name of an attribute from its character.
@ -212,7 +212,7 @@
} }
return null; return null;
} };
/** /**
@ -239,7 +239,7 @@
} }
return attrs; return attrs;
} };
/** /**
* Gets a single color from a string representing its index (WeeChat and * Gets a single color from a string representing its index (WeeChat and
@ -267,7 +267,7 @@
name: parseInt(codeStr).toString() name: parseInt(codeStr).toString()
}; };
} }
} };
/** /**
* Gets colors and attributes of text element. * Gets colors and attributes of text element.
@ -436,7 +436,7 @@
}); });
return ret; return ret;
} };
/** /**
* Transforms a raw text into an array of text elements with integrated * Transforms a raw text into an array of text elements with integrated
@ -471,7 +471,7 @@
var curAttrsOnlyFalseOverrides = true; var curAttrsOnlyFalseOverrides = true;
return parts.map(function(p) { return parts.map(function(p) {
if (p.length == 0) { if (p.length === 0) {
return null; return null;
} }
var firstCharCode = p.charCodeAt(0); var firstCharCode = p.charCodeAt(0);
@ -533,7 +533,7 @@
curSpecialToken = null; curSpecialToken = null;
// if text is empty, don't bother returning it // if text is empty, don't bother returning it
if (text.length == 0) { if (text.length === 0) {
return null; return null;
} }
@ -1194,4 +1194,4 @@
exports.Protocol = WeeChatProtocol; exports.Protocol = WeeChatProtocol;
})(); })();
})(typeof exports === "undefined" ? this.weeChat = {} : exports) })(typeof exports === "undefined" ? this.weeChat = {} : exports);