don't use double quotes in mixin

This commit is contained in:
Matthew Taylor 2015-10-16 10:59:41 -04:00
parent 0577860f3a
commit d6782e1034

View file

@ -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);