Remove duplication from cmpAutoBuildable init.
Differential revision: D3296 Reviewed by: @wraitii Comment by: @Stan This was SVN commit r24529.
This commit is contained in:
parent
312dbbea9e
commit
f876db857a
@ -2,9 +2,7 @@ class AutoBuildable
|
||||
{
|
||||
Init()
|
||||
{
|
||||
this.rate = ApplyValueModificationsToEntity("AutoBuildable/Rate", +this.template.Rate, this.entity);
|
||||
if (this.rate)
|
||||
this.StartTimer();
|
||||
this.UpdateRate();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -18,7 +16,6 @@ class AutoBuildable
|
||||
UpdateRate()
|
||||
{
|
||||
this.rate = ApplyValueModificationsToEntity("AutoBuildable/Rate", +this.template.Rate, this.entity);
|
||||
|
||||
if (this.rate)
|
||||
this.StartTimer();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user