-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
In coffescript you can call super without any arguments and it'll be equivalent to passing all arguments to it.
class MyClass
myMethod: ->
supertranslates 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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels