修复jshint错误

This commit is contained in:
welefen 2014-05-21 21:58:35 +08:00
parent 2e012fe75e
commit 651bd642a3
3 changed files with 3 additions and 7 deletions

View File

@ -1,14 +1,14 @@
var memcache = thinkRequire("MemcacheSocket");
module.exports = Cache(function(){
"use strict";
var instance = null;;
var instance = null;
return {
namePrefix: "__thinkjs__",
init: function(options){
this.super_("init", options);
if (!instance) {
instance = memcache(C('memcache_port'), C('memcache_host'));
};
}
this.handle = instance;
},
get: function(name){

View File

@ -226,10 +226,6 @@ module.exports = inherits(EventEmitter, function(){
* @return {[type]} [description]
*/
increment: function(key, step){
if (typeof step === 'function') {
callback = step;
step = 1;
}
step = step || 1;
return this.query('incr ' + key + ' ' + step, 'simple');
},

View File

@ -2,7 +2,7 @@
* REST Controller
* @return {[type]} [description]
*/
modulex.exports = Controller(function(){
module.exports = Controller(function(){
return {
__before: function(){