length is faster than size()

This commit is contained in:
Sarven Capadisli 2009-12-31 16:15:24 +00:00
parent 0320bf2fb3
commit 5103cb670a

View 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'));