Index: trunk/phase3/resources/mediawiki/mediawiki.js |
— | — | @@ -440,7 +440,7 @@ |
441 | 441 | 'tracked': false, |
442 | 442 | 'expires': 30 |
443 | 443 | }, options || {} ); |
444 | | - var cookie = $.cookie( 'mw.user.bucket-' + key ); |
| 444 | + var cookie = $.cookie( 'mw.user.bucket:' + key ); |
445 | 445 | var bucket = null; |
446 | 446 | var version = 0; |
447 | 447 | // Bucket information is stored as 2 integers, together as version:bucket like: "1:2" |
— | — | @@ -453,7 +453,7 @@ |
454 | 454 | } |
455 | 455 | if ( bucket === null ) { |
456 | 456 | if ( !$.isPlainObject( options.buckets ) ) { |
457 | | - throw 'Invalid buckets error. Object expected for options.buckets .'; |
| 457 | + throw 'Invalid buckets error. Object expected for options.buckets.'; |
458 | 458 | } |
459 | 459 | version = Number( options.version ); |
460 | 460 | // Find range |
— | — | @@ -474,11 +474,11 @@ |
475 | 475 | } |
476 | 476 | if ( options.tracked ) { |
477 | 477 | mw.loader.using( 'jquery.clickTracking', function() { |
478 | | - $.trackAction( 'mw.user.bucket-' + key + '@' + version + ':' + bucket ); |
| 478 | + $.trackAction( 'mw.user.bucket:' + key + '@' + version + ':' + bucket ); |
479 | 479 | } ); |
480 | 480 | } |
481 | 481 | $.cookie( |
482 | | - 'mw.userBuckets-' + key, |
| 482 | + 'mw.user.bucket:' + key, |
483 | 483 | version + ':' + bucket, |
484 | 484 | { 'path': '/', 'expires': Number( options.expires ) } |
485 | 485 | ); |