Added PointerLockManagement, Fixed layer positioning, added fps chart. fixes #120, fixes #121, fixes #123

This commit is contained in:
logsol 2015-02-27 18:44:30 +01:00
parent 8d0989844c
commit 60eae208a2
23 changed files with 458 additions and 109 deletions

View file

@ -0,0 +1,23 @@
define([
],
function () {
"use strict";
function QuerySelector() {
if (!document) {
throw new Error("Using QuerySelector, but window.document is not defined.");
}
}
QuerySelector.prototype.$ = function(selector) {
return document.querySelector(selector);
}
QuerySelector.prototype.$$ = function(selector) {
return document.querySelectorAll(selector);
}
return new QuerySelector();
});