aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow
diff options
context:
space:
mode:
authorGravatar Dan Mané <danmane@gmail.com>2016-06-02 10:17:33 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-06-02 11:31:34 -0700
commit53344688b8be0bb3e73431b1e5a0ad924c024732 (patch)
tree73cb40d78f5de28611d7926400b2209e90d39423 /tensorflow
parent9b92caf4e34fba84a65275f141832a535a6b58db (diff)
Fix TensorBoard in Safari by not using ES6 constructs in our polymer components.
Change: 123887298
Diffstat (limited to 'tensorflow')
-rw-r--r--tensorflow/tensorboard/components/tf-multi-checkbox/tf-multi-checkbox.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/tensorflow/tensorboard/components/tf-multi-checkbox/tf-multi-checkbox.html b/tensorflow/tensorboard/components/tf-multi-checkbox/tf-multi-checkbox.html
index 6ae2a57362..6f8fbff939 100644
--- a/tensorflow/tensorboard/components/tf-multi-checkbox/tf-multi-checkbox.html
+++ b/tensorflow/tensorboard/components/tf-multi-checkbox/tf-multi-checkbox.html
@@ -194,7 +194,8 @@ handle these situations gracefully.
// e.g. if TensorBoard was opened into a new tab that isn't visible.
// As a workaround... we know requestAnimationFrame won't fire until the
// page has focus, so updateStyles again on requestAnimationFrame.
- window.requestAnimationFrame(() => this.updateStyles());
+ var _this = this;
+ window.requestAnimationFrame(function() {_this.updateStyles();});
},
_checkboxChange: function(e) {
var name = e.srcElement.name;
@@ -210,14 +211,13 @@ handle these situations gracefully.
this.outSelected = change.base.slice();
},
toggleAll: function() {
+ var _this = this;
var allOn = this.namesMatchingRegex
- .filter((n) => !this.runToIsCheckedMapping[n])
+ .filter(function(n) {return !_this.runToIsCheckedMapping[n]})
.length === 0;
-
- this.namesMatchingRegex.forEach((n) => this.runToIsCheckedMapping[n] = !allOn);
+ this.namesMatchingRegex.forEach(function(n) {_this.runToIsCheckedMapping[n] = !allOn});
this.runToIsCheckedMapping = _.clone(this.runToIsCheckedMapping);
},
});
</script>
-
</dom-module>