Skip to content
This repository has been archived by the owner on May 30, 2018. It is now read-only.

Commit

Permalink
fix and issue when deleting all the text from textarea
Browse files Browse the repository at this point in the history
  • Loading branch information
marexandre committed Feb 9, 2015
1 parent d55916a commit e25280f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 15 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery-textarea-highlighter",
"version": "0.6.2",
"version": "0.6.3",
"main": "jquery.textarea-highlighter.js",
"ignore": [
"screenshot.png",
Expand Down
7 changes: 1 addition & 6 deletions jquery.textarea-highlighter.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* jquery.textarea-highlighter.js - jQuery plugin for highlighting text in textarea.
* @version v0.6.1
* @version v0.6.3
* @link https://github.com/marexandre/jquery.textarea-highlighter.js
* @author alexandre.kirillov@gmail.com
* @license MIT license. http://opensource.org/licenses/MIT
Expand Down Expand Up @@ -498,11 +498,6 @@ var marexandre;
var overMaxText = '';
var notOverMaxText = '';

if (text.length === 0) {
_this.$backgroundDiv.html('');
return;
}

// check for max length
if (0 < settings.maxlength) {
if (settings.maxlength < text.length) {
Expand Down
Loading

0 comments on commit e25280f

Please sign in to comment.