Upgrade meteor to 1.2-rc.4 and package versions

The new version of meteor speeds up the reload cycle, which is super
valuable during the development. I also removed the "imply-everything"
"meteor-platform" package in favor of a more fined-grained package
selection.

This version also introduces ES6 support with transparent babeljs
transpilation. Most features are enable (with the notable exception of
ES6 modules) and this commit started to use them in places where a XXX
comment suggested it.
This commit is contained in:
Maxime Quandalle 2015-08-24 23:30:56 +02:00
parent 9bea6a52d3
commit 07cc454b41
6 changed files with 118 additions and 98 deletions

View file

@ -40,11 +40,10 @@ BlazeComponent.extendComponent({
},
events: function() {
// XXX We can't define this event directly in the event map below because we
// miss ES6 object keys interpolation.
var events = {};
events[CSSEvents.animationend + ' .js-card-details'] = function() {
this.isLoaded.set(true);
var events = {
[CSSEvents.animationend + ' .js-card-details']: function() {
this.isLoaded.set(true);
}
};
return [_.extend(events, {

View file

@ -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');
});
}
}