per r90984 CR, cleaner this way
authorKrinkle <krinkle@users.mediawiki.org>
Tue, 28 Jun 2011 18:17:49 +0000 (18:17 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Tue, 28 Jun 2011 18:17:49 +0000 (18:17 +0000)
resources/mediawiki.special/mediawiki.special.recentchanges.js

index 4854ff4..7b11759 100644 (file)
                },
 
                init: function() {
-                       // Populate & bind
-                       $select = $( '#namespace' ).change( rc.updateCheckboxes );
+                       // Populate
+                       $select = $( '#namespace' );
 
-                       // Trigger once set the initial statuses of the checkboxes.
-                       $select.change();
+                       // Bind to change event, and trigger once to set the initial state of the checkboxes.
+                       $select.change( rc.updateCheckboxes ).change();
                }
        };