- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
// If the new value for styleProp is different from the one returned
// from the defaultFactory function, then store the new value on the
// overrides object. That way, future clones will get the new value.
if (defaultFactory != null)
{
o = new defaultFactory();
if (o[styleProp] !== value) // must use !==
{
if (!overrides)
overrides = {};
overrides[styleProp] = value;
}
else if (overrides)
{
delete overrides[styleProp];
}
}
// If the new value for styleProp is different from the one returned
// from the factory function, then store the new value on the
// overrides object. That way, future clones will get the new value.
if (factory != null)
{
o = new factory();
if (o[styleProp] !== value) // must use !==
{
if (!overrides)
overrides = {};
overrides[styleProp] = value;
}
else if (overrides)
{
delete overrides[styleProp];
}
}
guest8 09.04.2019 13:05 # −999