You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ni...@apache.org on 2015/06/27 02:21:22 UTC

[2/3] cordova-registry-web git commit: Adding trim to avoid extra space

Adding trim to avoid extra space


Project: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/commit/9df7907c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/tree/9df7907c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/diff/9df7907c

Branch: refs/heads/master
Commit: 9df7907cd38f6b88a091a2377ef5c9e5e649da2d
Parents: 19f3374
Author: Raghav Katyal <ra...@microsoft.com>
Authored: Thu Jun 25 17:11:21 2015 -0700
Committer: Nikhil Khandelwal <ni...@microsoft.com>
Committed: Fri Jun 26 17:20:47 2015 -0700

----------------------------------------------------------------------
 npm-search/assets/js/app.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/9df7907c/npm-search/assets/js/app.js
----------------------------------------------------------------------
diff --git a/npm-search/assets/js/app.js b/npm-search/assets/js/app.js
index 920e575..9854556 100644
--- a/npm-search/assets/js/app.js
+++ b/npm-search/assets/js/app.js
@@ -302,7 +302,7 @@ var App = React.createClass({
             }
             else {    
                 return {
-                    filterText: previousState.filterText + ' ' + condition + ' ',
+                    filterText: previousState.filterText.trim() + ' ' + condition + ' ',
                     plugins: previousState.plugins
                 };
             }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org