src/views/text.js
function(newData, limit) {
            if ((this.buffer.length + newData.length) > options.limit) {
                this.buffer = this.buffer.concat(newData.slice(0, options.limit - this.buffer.length));
                self._sendDisplayLimitReachedMessage(limit);
            }
            else {
                this.buffer = this.buffer.concat(newData);
            }
        }
function(newData, limit) {
            if ((this.buffer.length + newData.length) > options.limit) {
                this.buffer = this.buffer.concat(newData.slice(0, options.limit - this.buffer.length));
                self._sendDisplayLimitReachedMessage(limit);
            }
            else {
                this.buffer = this.buffer.concat(newData);
            }
        }
function ( newData , limit ) { if ( ( this . buffer . length + newData . length ) > options . limit ) { this . buffer = this . buffer . concat ( newData . slice ( 0 , options . limit - this . buffer . length ) ) ; self . _sendDisplayLimitReachedMessage ( limit ) ; } else { this . buffer = this . buffer . concat ( newData ) ; } }
Appends the new data to the buffer up to the current limit.
Sends a message if limit is reached.
@param  {[type]} data [description]
@return {[type]}      [description]
Appends the new data to the buffer up to the current limit . Sends a message if limit is reached .