This project is archived and is in readonly mode.

#900 ✓duplicate
131

Make some evolution in Class.Occlude to be $family()-friendly

Reported by 131 | May 3rd, 2010 @ 01:38 PM

As for today Class.Occlude force us to expose a property called "property" ... in our Class generation
I suggest to add a well formed Mutator.Occlude and use 1.3 $family() way as in :

var Car = new Class({
  Occlude:'Car',
  initilize:function(el){
   if(this.occlude(el)) return this.occluded;
  }
});
var mycar = new Car();
assert(typeOf(mycar)=='Car');
Instead of...
var Car = new Class(){
  Implements:[Class.Occlude],
  property:'Car',
  $family:function(){return 'Car';},
  initilize:function(el){
   if(this.occlude()) return this.occluded;
  }
});

PS : for complex ? usage, nothing prevent us to use this.occlude(el[, specifystuffhere])

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

Pages