Skip to content

Commit

Permalink
PropertyBinding: Avoid Object.assign
Browse files Browse the repository at this point in the history
  • Loading branch information
ianpurvis committed Mar 6, 2021
1 parent d9aeeed commit 86b6128
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions src/animation/PropertyBinding.js
Original file line number Diff line number Diff line change
Expand Up @@ -641,24 +641,22 @@ class PropertyBinding {

}

Object.assign( PropertyBinding, {
Composite
} );
PropertyBinding.Composite = Composite;

const BindingType = {
PropertyBinding.prototype.BindingType = {
Direct: 0,
EntireArray: 1,
ArrayElement: 2,
HasFromToArray: 3
};

const Versioning = {
PropertyBinding.prototype.Versioning = {
None: 0,
NeedsUpdate: 1,
MatrixWorldNeedsUpdate: 2
};

const GetterByBindingType = [
PropertyBinding.prototype.GetterByBindingType = [

PropertyBinding.prototype._getValue_direct,
PropertyBinding.prototype._getValue_array,
Expand All @@ -667,7 +665,7 @@ const GetterByBindingType = [

];

const SetterByBindingTypeAndVersioning = [
PropertyBinding.prototype.SetterByBindingTypeAndVersioning = [

[
// Direct
Expand Down Expand Up @@ -701,13 +699,5 @@ const SetterByBindingTypeAndVersioning = [

];

Object.assign( PropertyBinding.prototype, {

BindingType,
Versioning,
GetterByBindingType,
SetterByBindingTypeAndVersioning,

} );

export { PropertyBinding };

0 comments on commit 86b6128

Please sign in to comment.