In coffescript you can call super without any arguments and it'll be equivalent to passing all arguments to it.
class MyClass
myMethod: ->
super
translates into this:
var MyClass;
MyClass = (function() {
function MyClass() {}
MyClass.prototype.myMethod = function() {
return MyClass.__super__.myMethod.apply(this, arguments);
};
return MyClass;
})();
But in Emberscript super without arguments doesn't even call the method. It just accesses the _super property.
// Generated by EmberScript 0.0.14
var MyClass;
var get$ = Ember.get;
var set$ = Ember.set;
MyClass = Ember.Object.extend({
myMethod: function () {
return this._super;
}
});
Is that intentional?
In coffescript you can call
superwithout any arguments and it'll be equivalent to passing all arguments to it.translates into this:
But in Emberscript
superwithout arguments doesn't even call the method. It just accesses the_superproperty.Is that intentional?