1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 04:44:20 +01:00

Filter :au Fullscreen on fullscreen state rather than buffer URL. Remove bloody moz-collapsed attribute at the same time.

This commit is contained in:
Kris Maglione
2011-01-18 23:33:30 -05:00
parent b7e31f1bcc
commit 84f93ad96c
2 changed files with 3 additions and 2 deletions

View File

@@ -1076,9 +1076,10 @@ var Events = Module("events", {
onResize: function onResize(event) {
if (window.fullScreen != this._fullscreen) {
statusline.statusBar.removeAttribute("moz-collapsed");
this._fullscreen = window.fullScreen;
dactyl.triggerObserver("fullscreen", this._fullscreen);
autocommands.trigger("Fullscreen", { state: this._fullscreen });
autocommands.trigger("Fullscreen", { url: this._fullscreen ? "on" : "off", state: this._fullscreen });
}
},

View File

@@ -407,7 +407,7 @@ function isSubclass(targ, src) {
* returns true if ({}.toString.call(object) == "[object <interfaces>]").
*
* @param {object} object The object to check.
* @param {object|string|[object|string]} interfaces The types to check object against.
* @param {constructor|[constructor|string]} interfaces The types to check object against.
* @returns {boolean}
*/
var isinstance_types = {