[TYPO3-dev] Anybody here good in JS, Prototype and so on? (Date2Cal)
Steffen Ritter
info at rs-websystems.de
Mon Feb 11 10:04:35 CET 2008
UPDATE:
I found out, that _object is based on a new behaviour of prototype.
prototype Version in T3 4.1.5 $H() does something different than in
updated Version in 4.2..
I will have a Look how to adapt date2cal to work with this new class Hash.
Steffen Ritter schrieb:
> Hello,
> by now I'm digging into the Date2Cal error in T3 4.2...
> Since I'm not familiar which such structures prototype and complex JS
> objects create I have a question If the following behaviour is correct,
> or should be followed up...
>
> The functions creating the Cal-Object ask for a variable
> this.option with a Child Object calendarOptions
> The functions are crashing because of a fault in initializing these
> objects, variables are not set.
> BUT within this.option it exists an this.option._object which is a
> complete clone of this option, but initialized.
> So information asked by the Script could be found in this.option._object
> and this.option._object.calendarOptions.
>
> This.options is set with following "monster":
> this.options =
> Object.clone(Object.extend(Object.clone(DatetimeToolbocks.DefaultOptions),
> $H(options) || {}));
>
> I interpret this as initialize with DefaultOptions. But what is $H?
> And why do I have this _object child with holds the correct setup?
>
> Probably anybody can say something short and clearing about some
> construction.
>
> regards
>
> Steffen
More information about the TYPO3-dev
mailing list