summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-12-31 16:15:24 +0000
committerSarven Capadisli <csarven@status.net>2009-12-31 16:15:24 +0000
commit5103cb670a93a2f03e56230f50b8abe754b019d9 (patch)
tree339917d60f31eb68bcb9d9893ad680020b2dae55 /js
parent0320bf2fb3cdd4b9e6b635485421833fde447da8 (diff)
length is faster than size()
Diffstat (limited to 'js')
-rw-r--r--js/util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/util.js b/js/util.js
index f52c70ba4..46efe92ff 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'));