cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [2/2] docs commit: CB-13305: Docs can't build because of ES6 code use
Date Fri, 22 Sep 2017 21:27:15 GMT
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 <tommy@devgeeks.org>
Authored: Fri Sep 22 07:35:19 2017 +1000
Committer: Steve Gill <stevengill97@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


Mime
View raw message