Commit c1315256 c131525661cf91afb11b0e7de657f98854efe6e0 by Nicolas Perriault

added method names for better debugging capabilities

1 parent 0ac8c4de
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
28 * 28 *
29 */ 29 */
30 30
31 exports.create = function() { 31 exports.create = function create() {
32 return new Colorizer(); 32 return new Colorizer();
33 }; 33 };
34 34
...@@ -61,7 +61,7 @@ var Colorizer = function() { ...@@ -61,7 +61,7 @@ var Colorizer = function() {
61 * @params String styleName 61 * @params String styleName
62 * @return String 62 * @return String
63 */ 63 */
64 this.colorize = function(text, styleName) { 64 this.colorize = function colorize(text, styleName) {
65 if (styleName in styles) { 65 if (styleName in styles) {
66 return this.format(text, styles[styleName]); 66 return this.format(text, styles[styleName]);
67 } 67 }
...@@ -75,7 +75,7 @@ var Colorizer = function() { ...@@ -75,7 +75,7 @@ var Colorizer = function() {
75 * @param Object style 75 * @param Object style
76 * @return String 76 * @return String
77 */ 77 */
78 this.format = function(text, style) { 78 this.format = function format(text, style) {
79 if (typeof style !== "object") { 79 if (typeof style !== "object") {
80 return text; 80 return text;
81 } 81 }
......