浏览代码

Fix PropertyBinding alias

Tristan VALCKE 8 年之前
父节点
当前提交
bf13d47c7e
共有 1 个文件被更改,包括 8 次插入4 次删除
  1. 8 4
      src/animation/PropertyBinding.js

+ 8 - 4
src/animation/PropertyBinding.js

@@ -232,10 +232,6 @@ Object.assign( PropertyBinding.prototype, { // prototype, continued
 	_getValue_unavailable: function() {},
 	_setValue_unavailable: function() {},
 
-	// initial state of these methods that calls 'bind'
-	_getValue_unbound: PropertyBinding.prototype.getValue,
-	_setValue_unbound: PropertyBinding.prototype.setValue,
-
 	BindingType: {
 		Direct: 0,
 		EntireArray: 1,
@@ -647,5 +643,13 @@ Object.assign( PropertyBinding.prototype, { // prototype, continued
 
 } );
 
+//!\ DECLARE ALIAS AFTER assign prototype !
+Object.assign( PropertyBinding.prototype, {
+
+	// initial state of these methods that calls 'bind'
+	_getValue_unbound: PropertyBinding.prototype.getValue,
+	_setValue_unbound: PropertyBinding.prototype.setValue,
+
+} );
 
 export { PropertyBinding };