Skip to content

Commit

Permalink
debugInfos -> debugInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Aug 17, 2011
1 parent 55a8fa6 commit bbce094
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/visitor/compiler.js
Expand Up @@ -82,7 +82,7 @@ Compiler.prototype.visitRoot = function(block){
case 'unit':
continue;
default:
if (this.linenos || this.firebug) this.debugInfos(node);
if (this.linenos || this.firebug) this.debugInfo(node);
var ret = this.visit(node);
if (ret) this.buf += ret + '\n';
}
Expand Down Expand Up @@ -129,7 +129,7 @@ Compiler.prototype.visitBlock = function(block){
case 'print':
case 'page':
case 'block':
if (this.linenos || this.firebug) this.debugInfos(node);
if (this.linenos || this.firebug) this.debugInfo(node);
this.visit(node);
break;
case 'media':
Expand Down Expand Up @@ -434,10 +434,10 @@ Compiler.prototype.visitProperty = function(prop){
};

/**
* Debug infos
* Debug info.
*/

Compiler.prototype.debugInfos = function(node){
Compiler.prototype.debugInfo = function(node){

var path = fs.realpathSync(node.filename)
, line = node.nodes ? node.nodes[0].lineno : node.lineno;
Expand All @@ -447,7 +447,7 @@ Compiler.prototype.debugInfos = function(node){
}

if (this.firebug){
// debug infos for firebug, the crazy formatting is needed
// debug info for firebug, the crazy formatting is needed
path = 'file\\\:\\\/\\\/' + path.replace(/(\/|\.)/g, '\\$1');
line = '\\00003' + line;
this.buf += '\n@media -stylus-debug-info'
Expand Down

0 comments on commit bbce094

Please sign in to comment.