From 1ce29f831029806692a2cdb3b1e2f250ae4e1324 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sun, 24 Jan 2016 20:51:07 -0800 Subject: [PATCH] Rename for consistency. --- metatron.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/metatron.js b/metatron.js index f0b2341..546f4d5 100644 --- a/metatron.js +++ b/metatron.js @@ -238,15 +238,15 @@ metatron.Listener.prototype.onValue_ = function(value) { if (this.tag_.equals(this.tagBuffer_)) { console.log('tag seen!'); this.state_ = metatron.Listener.STATE_.WAIT_LENGTH; - this.lengthBuffer_ = []; + this.lengthParts_ = []; } break; case metatron.Listener.STATE_.WAIT_LENGTH: - this.lengthBuffer_.push(realValue); - if (this.lengthBuffer_.length == 2) { + this.lengthParts_.push(realValue); + if (this.lengthParts_.length == 2) { this.length_ = 0; - this.lengthBuffer_.forEach(function(part) { + this.lengthParts_.forEach(function(part) { this.length_ <<= 4; this.length_ += part; }.bind(this));