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

Commit

Permalink
Merge pull request #4 from MattC8915/master
Browse files Browse the repository at this point in the history
Adding undefined check for $data
  • Loading branch information
anotherchrisberry committed Apr 2, 2015
2 parents 195d94c + 6df8d10 commit ebe269b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.textentered.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
detectIdle : function(eventVersion) {
var $this = $(this);
var $data = $this.data('textentered');
if ($data.eventVersion == eventVersion) {
if ($data && $data.eventVersion == eventVersion) {
$data.lastValue = $data.trimValue ? $.trim($this.val()) : $this.val();
if ($data.lastValue.length >= $data.minLengthToTrigger) {
$this.trigger('textentered');
Expand Down

0 comments on commit ebe269b

Please sign in to comment.