Viva javascript

This commit is contained in:
Thomas FORGIONE 2015-08-26 14:27:22 +02:00
parent f0e4455bc2
commit 9cf486a5c2
2 changed files with 2 additions and 3 deletions

View File

@ -151,7 +151,7 @@ function editorHelper(templateName) {
};
};
}
module.exports.clicker = editorHelper('prototype_clicker.jade');
module.exports.viewer = editorHelper('prototype_viewer.jade');

View File

@ -210,8 +210,7 @@ L3D.PointerCamera.prototype.lockPointer = function() {
* @returns true if the pointer is locked, false otherwise
*/
L3D.PointerCamera.prototype.isLocked = function() {
return
document.pointerLockElement === this.renderer.domElement ||
return document.pointerLockElement === this.renderer.domElement ||
document.mozPointerLockElement === this.renderer.domElement ||
document.webkitPointerLockElement === this.renderer.domElement;