JQ('#wp-word-count').html( wordCountL10n.count.replace( /%d/, '<span id="word-count">0</span>' ) );
t.block = 0;
t.wc(co.val());
- co.keyup( function(e) {
+ co.keyup( function(e) {
if ( e.keyCode == last ) return true;
if ( 13 == e.keyCode || 8 == last || 46 == last ) t.wc(co.val());
last = e.keyCode;
setTimeout( function() { t.block = 0; }, 2000 );
}, 1 );
}
- }
+ }
}(jQuery));
jQuery(document).ready( function(){ wpWordCount.init(); } );