From dd274282d3e45daa5c7b3099e2408817e9ecb6f1 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Mon, 23 Dec 2019 13:46:57 +0800 Subject: [PATCH] =?UTF-8?q?getLastKeyword=E5=8F=98=E6=88=90=E7=A7=81?= =?UTF-8?q?=E6=9C=89=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/combination/searcher.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/base/combination/searcher.js b/src/base/combination/searcher.js index 2daad7077..7d99209b4 100644 --- a/src/base/combination/searcher.js +++ b/src/base/combination/searcher.js @@ -164,7 +164,7 @@ BI.Searcher = BI.inherit(BI.Widget, { }, _search: function () { - var self = this, o = this.options, keyword = this.getLastSearchKeyword(); + var self = this, o = this.options, keyword = this._getLastSearchKeyword(); if (keyword === "" || this._stop) { return; } @@ -197,7 +197,7 @@ BI.Searcher = BI.inherit(BI.Widget, { }); }, - getLastSearchKeyword: function () { + _getLastSearchKeyword: function () { if (this.isValid()) { var res = this.editor.getValue().match(/[\S]+/g); return BI.isNull(res) ? "" : res[res.length - 1]; @@ -265,7 +265,7 @@ BI.Searcher = BI.inherit(BI.Widget, { }, getKeyword: function () { - return this.getLastSearchKeyword(); + return this._getLastSearchKeyword(); }, getKeywords: function () {