From 2ce2eff42a95a97ac524660720f06c1288726d06 Mon Sep 17 00:00:00 2001 From: glathoud Date: Tue, 10 Jul 2018 09:06:28 +0200 Subject: [PATCH] renamed #11 --- fext.js | 6 +++--- lib/sorted_search.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fext.js b/fext.js index 3318560..3ac22f5 100755 --- a/fext.js +++ b/fext.js @@ -447,7 +447,7 @@ var global, exports // Convenience (esp. for `meth`) ret.getImpl = debug ? null : getImpl; - ret.getImplEval = debug + ret.getEvalImpl = debug ? function () { return ret; } : function () { return '(' + getImpl() + ')'; } ; @@ -925,7 +925,7 @@ var global, exports : f_or_s ; meth_wrapper_dbg.getImpl = null; - meth_wrapper_dbg.getImplEval = function () { + meth_wrapper_dbg.getEvalImpl = function () { return meth_wrapper_dbg; }; @@ -1051,7 +1051,7 @@ var global, exports o[ name ].getImpl = debug ? null : meth_mfun.getImpl; - o[ name ].getImplEval = debug + o[ name ].getEvalImpl = debug ? function () { return o[ name ].bind( o ); } : function () { return '(' + o[ name ].getImpl() + ')'; }; } diff --git a/lib/sorted_search.js b/lib/sorted_search.js index b9e654f..9096f92 100644 --- a/lib/sorted_search.js +++ b/lib/sorted_search.js @@ -175,8 +175,8 @@ var global, exports; // Now we can implement them, using evil access to the local // lexical scope so that we do not need to write parameters // repeatedly 5 times (see above `function sortedSearch(...)`). - improveFirst = eval( improveFirst.getImplEval() ); - improveLast = eval( improveLast.getImplEval() ); + improveFirst = eval( improveFirst.getEvalImpl() ); + improveLast = eval( improveLast.getEvalImpl() ); var first_found , last_found