]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
length is faster than size()
authorSarven Capadisli <csarven@status.net>
Thu, 31 Dec 2009 16:15:24 +0000 (16:15 +0000)
committerSarven Capadisli <csarven@status.net>
Thu, 31 Dec 2009 16:15:24 +0000 (16:15 +0000)
js/util.js

index f52c70ba42839fd42fdb01fce9def5f3aa331e99..46efe92ffe9887f067d7815a04c13136a5312102 100644 (file)
@@ -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'));