Skip to content

Commit 8251233

Browse files
committed
Fix call with arguments -> apply
1 parent cdfeff9 commit 8251233

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

js/src/cameras/OrthographicCamera.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var OrthographicCameraAutogen = require('./OrthographicCamera.autogen');
44
var OrthographicCameraModel = OrthographicCameraAutogen.OrthographicCameraModel.extend({
55
// push data from model to three object
66
syncToThreeObj: function(force) {
7-
OrthographicCameraAutogen.OrthographicCameraModel.prototype.syncToThreeObj.call(this, arguments);
7+
OrthographicCameraAutogen.OrthographicCameraModel.prototype.syncToThreeObj.apply(this, arguments);
88
// Always update the projection matrix after setting the attributes:
99
this.obj.updateProjectionMatrix();
1010
}

js/src/cameras/PerspectiveCamera.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var PerspectiveCameraAutogen = require('./PerspectiveCamera.autogen');
44
var PerspectiveCameraModel = PerspectiveCameraAutogen.PerspectiveCameraModel.extend({
55
// push data from model to three object
66
syncToThreeObj: function(force) {
7-
PerspectiveCameraAutogen.PerspectiveCameraModel.prototype.syncToThreeObj.call(this, arguments);
7+
PerspectiveCameraAutogen.PerspectiveCameraModel.prototype.syncToThreeObj.apply(this, arguments);
88
// Always update the projection matrix after setting the attributes:
99
this.obj.updateProjectionMatrix();
1010
}

js/src/objects/CloneArray.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ var CloneArrayModel = CloneArrayAutogen.extend({
121121
syncToThreeObj: function(force) {
122122

123123
this._needs_rebuild = false;
124-
CloneArrayAutogen.prototype.syncToThreeObj.call(this, arguments);
124+
CloneArrayAutogen.prototype.syncToThreeObj.apply(this, arguments);
125125
if (this._needs_rebuild) {
126126
this.obj.build();
127127
}

js/src/textures/TextTexture.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var TextTextureModel = TextTextureBase.extend({
1818

1919
// push data from model to three object
2020
syncToThreeObj: function(force) {
21-
TextTextureBase.prototype.syncToThreeObj.call(this, arguments);
21+
TextTextureBase.prototype.syncToThreeObj.apply(this, arguments);
2222

2323
// TODO: Use mapping of relevant properties instead of sync?
2424
var canvas = this.buildCanvas();

0 commit comments

Comments
 (0)