From fef3e7542a7f453a162d7742a9747cd98ce63476 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Sat, 5 Oct 2013 15:32:32 -0400 Subject: [PATCH] weechat-protocol.js: move getSlice() --- js/weechat-protocol.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/js/weechat-protocol.js b/js/weechat-protocol.js index b80bcac..90c2e23 100644 --- a/js/weechat-protocol.js +++ b/js/weechat-protocol.js @@ -101,13 +101,6 @@ WeeChatProtocol.prototype = { return ""; }, - _getSlice: function(length) { - var slice = this._data.slice(this._dataAt, this._dataAt + length); - - this._dataAt += length; - - return slice; - }, _getHeader: function() { var len = this._getInt(); var comp = this._getChar(); @@ -147,6 +140,13 @@ WeeChatProtocol.prototype = { return values; }, + _getSlice: function(length) { + var slice = this._data.slice(this._dataAt, this._dataAt + length); + + this._dataAt += length; + + return slice; + }, _setData: function (data) { this._data = data; },