Skip to content

Commit 1a7aa36

Browse files
authored
bugfix _this -> this
1 parent 273ff91 commit 1a7aa36

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

jqClock.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ if (!String.prototype.padStart) {
141141
(function($, undefined) {
142142

143143
$.clock = {
144-
"version": "2.2.20",
144+
"version": "2.2.30",
145145
"options": [
146146
{
147147
"type": "string",
@@ -563,11 +563,11 @@ if (!String.prototype.padStart) {
563563
}
564564
}
565565
/* End non user passable options */
566-
if ( !$(_this).hasClass("jqclock")){ $(_this).addClass("jqclock"); }
567-
if ( !$(_this).is("[id]") ){ $(_this).attr("id", _newGuid()); }
568-
$(_this).data("clockoptions",options);
566+
if ( !$(this).hasClass("jqclock")){ $(this).addClass("jqclock"); }
567+
if ( !$(this).is("[id]") ){ $(this).attr("id", _newGuid()); }
568+
$(this).data("clockoptions",options);
569569
//only allow one associated settimeout at a time! basically, only one plugin instance per dom element
570-
if(_jqClock.hasOwnProperty($(_this).attr("id")) === false){ _updateClock($(_this)); }
570+
if(_jqClock.hasOwnProperty($(this).attr("id")) === false){ _updateClock($(this)); }
571571
}
572572
else if(typeof options === 'string'){
573573
var el_id = $(this).attr("id");

0 commit comments

Comments
 (0)