I've been attempting to upgrade from 2.0 to 2.1 and am running into quite a few problems, mostly they are working out with small changes. One seemingly strange and dangerous change though is the new way constructors are handled.
It seems a constructor can now return a value instead of just finish instantiating the object that is being constructed. Just wondering what the best way would be to handle extending and overriding classes now?
I.E. used to do this.
Now, since the parent constructor may return a value that is not "this" we have to do something like this I think.
config = this.doSomePreProcessing();
var newThis = this.callParent(arguments) || this;
I don't actually think this will work in the end though since newThis could be a completely different thing, and wouldn't contain any of the extension properties. Touch Grid actually uses this "feature" to return a List implementation instead of a dataview implementation so our extension class isn't used.
Anyway, thought this should be documented somewhere, and I couldn't find it.
Yeah that was the second place we saw it and other than rewriting our extension entirely (it allows you to specify editor components that are always shown instead of having to click on them) it won't work with the new structure and winds up crashing because a List is returned instead of a Dataview and that List doesn't have any of the custom extension code of course.
The weird one is Model. It seems that model can return a cached version which for some reason didn't break in 2.0 but when we switched to 2.1 all of our models that have some kind of special constructor didn't work anymore and I had to use the mechanism above to get things working. I just noticed that the actual code is the same in 2.0 vs 2.1 so it's not really a change to the constructor, it's just that now it seems to matter in 2.1.
Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."