Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Class super calls with modules

#405

Current implementation of Class assumes that super calls work only with parent classes as it is normally in java. But in our beloved Ruby we can use super calls with functionality injection feature. That would be great to be able to do the same in RightJS as well.

var Klass = new Class({
  include: [
    {method: function() { return 1; }},
    {method: function() { return this.$super() + 1; }}
  ],

  method: function() {
    return this.$super() + 2;
  }
});

var klass = new Klass();
klass.method(); // -> 4 (1 + 1 + 2)

kinda like that

Reported by MadRabbit · November 13th, 2010 @ 01:37 PM

State: resolved
Milestone: 2.2.0 Release
Assigned to: nobody

Activity

  1. MadRabbit
    MadRabbit
    • State changed from new to resolved
    • Milestone order changed from 16 to 0

    January 7th, 2011 @ 07:34 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.