Index: trunk/extensions/ClickTracking/modules/ext.UserBuckets.js |
— | — | @@ -77,7 +77,7 @@ |
78 | 78 | }; |
79 | 79 | |
80 | 80 | // No need to do any of this if there are no active campaigns |
81 | | -if ( mw.activeCampaigns && mw.activeCampaigns.length ) { |
| 81 | +if ( mw.activeCampaigns && !$.isEmptyObject(mw.activeCampaigns) ) { |
82 | 82 | $( $.setupActiveBuckets ); |
83 | 83 | } |
84 | 84 | |