mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-26 17:16:11 -05:00
don't use double quotes in mixin
This commit is contained in:
parent
0577860f3a
commit
d6782e1034
1 changed files with 2 additions and 2 deletions
|
@ -2,8 +2,8 @@ var jar = require('../lib/jar');
|
||||||
|
|
||||||
var cookieMixinFactory = function (cookieName, cookieSetter) {
|
var cookieMixinFactory = function (cookieName, cookieSetter) {
|
||||||
var capitalizedCookieName = cookieName.charAt(0).toUpperCase() + cookieName.slice(1);
|
var capitalizedCookieName = cookieName.charAt(0).toUpperCase() + cookieName.slice(1);
|
||||||
var getterName = "get" + capitalizedCookieName;
|
var getterName = 'get' + capitalizedCookieName;
|
||||||
var userName = "use" + capitalizedCookieName;
|
var userName = 'use' + capitalizedCookieName;
|
||||||
var mixin = {};
|
var mixin = {};
|
||||||
mixin[getterName] = function (callback) {
|
mixin[getterName] = function (callback) {
|
||||||
jar.get(cookieName, callback);
|
jar.get(cookieName, callback);
|
||||||
|
|
Loading…
Reference in a new issue