[Groonga-commit] droonga/express-droonga at 04a80bd [master] Make readonly attributes to boolean methods

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Mar 20 15:20:18 JST 2014


YUKI Hiroshi	2014-03-20 15:20:18 +0900 (Thu, 20 Mar 2014)

  New Revision: 04a80bd46034dcf55a9efaff84c5f063316e193c
  https://github.com/droonga/express-droonga/commit/04a80bd46034dcf55a9efaff84c5f063316e193c

  Message:
    Make readonly attributes to boolean methods

  Modified files:
    lib/response-cache/entry.js

  Modified: lib/response-cache/entry.js (+2 -2)
===================================================================
--- lib/response-cache/entry.js    2014-03-20 15:18:50 +0900 (736e677)
+++ lib/response-cache/entry.js    2014-03-20 15:20:18 +0900 (6b83fbf)
@@ -18,7 +18,7 @@ function Entry(key, ttlInMilliSeconds, cache) {
   };
 };
 Entry.prototype = {
-  get cachable() {
+  isCachable: function() {
     return this.data.status == 200;
   },
 
@@ -55,7 +55,7 @@ Entry.prototype = {
   },
 
   store: function() {
-    if (!this.cachable)
+    if (!this.isCachable())
       return;
 
     this.cache.set(this.key, this.data, this.ttlInMilliSeconds);
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index