This commit is contained in:
Fabian Irsara 2015-12-01 22:47:47 +01:00
parent b0e7a8ec58
commit 6f2fdd8b23
2 changed files with 23 additions and 22 deletions

View File

@ -1920,14 +1920,14 @@ dat.GUI = dat.gui.GUI = (function (css, saveDialogueContents, styleSheet, contro
}
var _resizeHandler = function () {
this._resizeHandler = function () {
_this.onResize();
};
dom.bind(window, 'resize', _resizeHandler);
dom.bind(this.__ul, 'webkitTransitionEnd', _resizeHandler);
dom.bind(this.__ul, 'transitionend', _resizeHandler);
dom.bind(this.__ul, 'oTransitionEnd', _resizeHandler);
dom.bind(window, 'resize', this._resizeHandler);
dom.bind(this.__ul, 'webkitTransitionEnd', this._resizeHandler);
dom.bind(this.__ul, 'transitionend', this._resizeHandler);
dom.bind(this.__ul, 'oTransitionEnd', this._resizeHandler);
this.onResize();
@ -1981,14 +1981,14 @@ dat.GUI = dat.gui.GUI = (function (css, saveDialogueContents, styleSheet, contro
GUI.TEXT_CLOSED = 'Close Controls';
GUI.TEXT_OPEN = 'Open Controls';
var _keydownHandler = function(e) {
this._keydownHandler = function(e) {
if (document.activeElement.type !== 'text' &&
(e.which === HIDE_KEY_CODE || e.keyCode == HIDE_KEY_CODE)) {
GUI.toggleHide();
}
};
dom.bind(window, 'keydown', _keydownHandler, false);
dom.bind(window, 'keydown', this._keydownHandler, false);
common.extend(
@ -2057,11 +2057,11 @@ dat.GUI = dat.gui.GUI = (function (css, saveDialogueContents, styleSheet, contro
auto_place_container.removeChild(this.domElement);
}
dom.unbind(window, 'keydown', _keydownHandler, false);
dom.unbind(window, 'resize', _resizeHandler);
dom.unbind(window, 'keydown', this._keydownHandler, false);
dom.unbind(window, 'resize', this._resizeHandler);
if (saveToLocalStorage) {
dom.unbind(window, 'unload', saveToLocalStorage);
if (this.saveToLocalStorageIfPossible) {
dom.unbind(window, 'unload', this.saveToLocalStorageIfPossible);
}
},

23
build/dat.gui.min.js vendored

File diff suppressed because one or more lines are too long