blessed-contrib
Advanced tools
Comparing version 2.3.3 to 2.3.4
@@ -22,5 +22,10 @@ var blessed = require('blessed') | ||
this.on("attach", function() { | ||
var percent = this.percent = self.options.percent || 0; | ||
this.setData(percent) | ||
if (self.options.stack) { | ||
var stack = this.stack = self.options.stack; | ||
this.setStack(stack) | ||
} | ||
else { | ||
var percent = this.percent = self.options.percent || 0; | ||
this.setData(percent) | ||
} | ||
}) | ||
@@ -44,3 +49,3 @@ | ||
} else if (typeof(data) == null) { | ||
} | ||
@@ -50,3 +55,3 @@ } | ||
Gauge.prototype.setPercent = function(percent) { | ||
if (!this.ctx) { | ||
@@ -53,0 +58,0 @@ throw "error: canvas context does not exist. setData() for gauges must be called after the gauge has been added to the screen via screen.append()" |
{ | ||
"name": "blessed-contrib", | ||
"version": "2.3.3", | ||
"version": "2.3.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
70721
1543