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

[2/2] docs commit: CB-13305: Docs can't build because of ES6 code use

CB-13305: Docs can't build because of ES6 code use

Updated `linkRef` function to use `var` and ES5 functions instead of
`let` and arrow functions.


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/237ee1d4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/237ee1d4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/237ee1d4

Branch: refs/heads/master
Commit: 237ee1d48fad494d7d4e13e91f957a64edac0d1c
Parents: ba6e50b
Author: tommy-carlos williams <to...@devgeeks.org>
Authored: Fri Sep 22 07:35:19 2017 +1000
Committer: Steve Gill <st...@gmail.com>
Committed: Fri Sep 22 14:27:01 2017 -0700

----------------------------------------------------------------------
 www/static/plugins/searchbar.jsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/237ee1d4/www/static/plugins/searchbar.jsx
----------------------------------------------------------------------
diff --git a/www/static/plugins/searchbar.jsx b/www/static/plugins/searchbar.jsx
index ba544de..f3bff04 100755
--- a/www/static/plugins/searchbar.jsx
+++ b/www/static/plugins/searchbar.jsx
@@ -8,9 +8,9 @@ var SearchBar = createClass({
 
     // polyfill of sorts for string refs
     linkRef: function(component, name) {
-        let cache = component._linkedRefs || (component._linkedRefs = {});
+        var cache = component._linkedRefs || (component._linkedRefs = {});
         if (!component.refs) component.refs = {};
-        return cache[name] || (cache[name] = c => {
+        return cache[name] || (cache[name] = function(c) {
             component.refs[name] = c;
         });
     },


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