From: Sarven Capadisli Date: Thu, 31 Dec 2009 16:15:24 +0000 (+0000) Subject: length is faster than size() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5103cb670a93a2f03e56230f50b8abe754b019d9;p=quix0rs-gnu-social.git length is faster than size() --- diff --git a/js/util.js b/js/util.js index f52c70ba42..46efe92ffe 100644 --- a/js/util.js +++ b/js/util.js @@ -438,7 +438,7 @@ var SN = { // StatusNet }, NoticeLocationAttach: function() { - if($('#notice_data-location_enabled').size()) { + if ($('#notice_data-location_enabled').length > 0) { if(navigator.geolocation) { $('#notice_data-location_enabled').change(function() { $.cookie(SN.C.S.NoticeLocationCookieName, $('#notice_data-location_enabled').attr('checked'));