Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
c1315256
...
c131525661cf91afb11b0e7de657f98854efe6e0
authored
2012-01-11 09:34:57 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added method names for better debugging capabilities
1 parent
0ac8c4de
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
modules/casper.js
modules/colorizer.js
modules/casper.js
View file @
c131525
This diff is collapsed.
Click to expand it.
modules/colorizer.js
View file @
c131525
...
...
@@ -28,7 +28,7 @@
*
*/
exports
.
create
=
function
()
{
exports
.
create
=
function
create
()
{
return
new
Colorizer
();
};
...
...
@@ -61,7 +61,7 @@ var Colorizer = function() {
* @params String styleName
* @return String
*/
this
.
colorize
=
function
(
text
,
styleName
)
{
this
.
colorize
=
function
colorize
(
text
,
styleName
)
{
if
(
styleName
in
styles
)
{
return
this
.
format
(
text
,
styles
[
styleName
]);
}
...
...
@@ -75,7 +75,7 @@ var Colorizer = function() {
* @param Object style
* @return String
*/
this
.
format
=
function
(
text
,
style
)
{
this
.
format
=
function
format
(
text
,
style
)
{
if
(
typeof
style
!==
"object"
)
{
return
text
;
}
...
...
Please
register
or
sign in
to post a comment