Permalink
Browse files

[minor] Improve performance by removing lazy-loading after first time

  • Loading branch information...
1 parent abc8ffb commit e716ac59e3d9a87bb7020801713597d0c8113898 @pksunkara pksunkara committed Jun 16, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/cliff.js
View
@@ -13,7 +13,8 @@ var cliff = exports,
logger;
cliff.__defineGetter__('logger', function () {
- return logger;
+ delete cliff.logger;
+ return cliff.logger = logger;
});
cliff.__defineSetter__('logger', function (val) {
@@ -276,4 +277,4 @@ function longestElement(a) {
}
return l;
-}
+}

0 comments on commit e716ac5

Please sign in to comment.