Permalink
Browse files

fix(lib/yukari.js): fix the bug memcache should be delete but not whe…

…n update
  • Loading branch information...
mapleincode committed Mar 10, 2016
1 parent c863bcf commit b599506798aad9d1c62d11be05fb747a522803c5
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/yukari.js
@@ -47,14 +47,14 @@ Yukari.prototype._getPrimaryKeys = function(fromOrig) {
var keys = this.$model.getPrimaryKeysName();
if(typeof keys === "string") {
return (fromOrig || this[keys] === undefined) ?
this.$origData[keys] :
this.$origData[keys].data :
this[keys];
}

var obj = {};
for(var i = 0; i < keys.length; i++) {
obj[keys[i]] = (fromOrig || this[keys[i]] === undefined) ?
this.$origData[keys[i]] :
this.$origData[keys[i]].data :
this[keys[i]];
}
return obj;

0 comments on commit b599506

Please sign in to comment.