summaryrefslogtreecommitdiffstats
path: root/client/components/forms/inlinedform.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/components/forms/inlinedform.js')
-rw-r--r--client/components/forms/inlinedform.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/client/components/forms/inlinedform.js b/client/components/forms/inlinedform.js
index 2988738c..09c75ce1 100644
--- a/client/components/forms/inlinedform.js
+++ b/client/components/forms/inlinedform.js
@@ -70,12 +70,10 @@ BlazeComponent.extendComponent({
// Close the inlined form when after its submission
submit: function() {
- var self = this;
- // XXX Swith to an arrow function here when we'll have ES6
if (this.currentData().autoclose !== false) {
- Tracker.afterFlush(function() {
- self.close();
- self.callFirstWith(self, 'resetCache');
+ Tracker.afterFlush(() => {
+ this.close();
+ this.callFirstWith(this, 'resetCache');
});
}
}