#310 ✓resolved
MadRabbit

Check the Private Wrappers Caching

Reported by MadRabbit | August 12th, 2010 @ 09:33 AM | in 2.0.0 Release

I have a suspicion that it doesn't work properly, check if does the followin

var MyDiv = new Element({
  initialize: function(options) {
    this.$super('div', options);
  }
});

var my_div = new MyDiv({id: 'my-div'}).insertTo(document.body);

// this should be `true`
$('my-div') === my_div;

// and this one should be `true` as well
$(document.getElementById('my-div')) === my_div;

try also first create an element with normal Element interface and then reinstance it with a private wrapper, the cache should be updated

Comments and changes to this ticket

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.

New-ticket Create new ticket

Create your profile

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

RightJS Core Tickets

Shared Ticket Bins

People watching this ticket

Pages