Skip to content

Commit 86b6128

Browse files
committed
PropertyBinding: Avoid Object.assign
1 parent d9aeeed commit 86b6128

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

src/animation/PropertyBinding.js

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -641,24 +641,22 @@ class PropertyBinding {
641641

642642
}
643643

644-
Object.assign( PropertyBinding, {
645-
Composite
646-
} );
644+
PropertyBinding.Composite = Composite;
647645

648-
const BindingType = {
646+
PropertyBinding.prototype.BindingType = {
649647
Direct: 0,
650648
EntireArray: 1,
651649
ArrayElement: 2,
652650
HasFromToArray: 3
653651
};
654652

655-
const Versioning = {
653+
PropertyBinding.prototype.Versioning = {
656654
None: 0,
657655
NeedsUpdate: 1,
658656
MatrixWorldNeedsUpdate: 2
659657
};
660658

661-
const GetterByBindingType = [
659+
PropertyBinding.prototype.GetterByBindingType = [
662660

663661
PropertyBinding.prototype._getValue_direct,
664662
PropertyBinding.prototype._getValue_array,
@@ -667,7 +665,7 @@ const GetterByBindingType = [
667665

668666
];
669667

670-
const SetterByBindingTypeAndVersioning = [
668+
PropertyBinding.prototype.SetterByBindingTypeAndVersioning = [
671669

672670
[
673671
// Direct
@@ -701,13 +699,5 @@ const SetterByBindingTypeAndVersioning = [
701699

702700
];
703701

704-
Object.assign( PropertyBinding.prototype, {
705-
706-
BindingType,
707-
Versioning,
708-
GetterByBindingType,
709-
SetterByBindingTypeAndVersioning,
710-
711-
} );
712702

713703
export { PropertyBinding };

0 commit comments

Comments
 (0)