mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-22 23:27:54 -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 capitalizedCookieName = cookieName.charAt(0).toUpperCase() + cookieName.slice(1);
|
||||
var getterName = "get" + capitalizedCookieName;
|
||||
var userName = "use" + capitalizedCookieName;
|
||||
var getterName = 'get' + capitalizedCookieName;
|
||||
var userName = 'use' + capitalizedCookieName;
|
||||
var mixin = {};
|
||||
mixin[getterName] = function (callback) {
|
||||
jar.get(cookieName, callback);
|
||||
|
|
Loading…
Reference in a new issue