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
-
MadRabbit August 12th, 2010 @ 10:20 AM
- State changed from new to resolved
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.