added method names for better debugging capabilities
Showing
2 changed files
with
3 additions
and
3 deletions
This diff is collapsed.
Click to expand it.
... | @@ -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 | } | ... | ... |
-
Please register or sign in to post a comment