Skip to content

Commit 9952553

Browse files
committed
Minor fixes
1 parent 9cb8fe7 commit 9952553

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

js/src/_base/Preview.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,7 @@ var PreviewView = RenderableView.extend({
113113

114114
clearScene: function() {
115115
// this.controls.reset();
116-
this.scene.children.forEach(function(child) {
117-
this.scene.remove(child);
118-
}, this);
116+
this.scene.remove.apply(this.scene, this.scene.children.slice());
119117
},
120118

121119
setupControls: function() {

js/src/textures/ImageTexture.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var ImageTextureModel = ImageTextureBase.ImageTextureModel.extend({
2020
},
2121
function(xhr) {
2222
console.log('Error loading texture: ' + imageUri);
23-
return reject(texture);
23+
return reject(xhr);
2424
}
2525
);
2626
});

0 commit comments

Comments
 (0)