Changeset View
Changeset View
Standalone View
Standalone View
effects/fadingpopups/package/contents/code/main.js
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Line(s) | 34 | function isPopupWindow(window) { | |||
---|---|---|---|---|---|
63 | 63 | | |||
64 | // Previously, there was a "monolithic" fade effect, which tried to | 64 | // Previously, there was a "monolithic" fade effect, which tried to | ||
65 | // animate almost every window that was shown or hidden. Then it was | 65 | // animate almost every window that was shown or hidden. Then it was | ||
66 | // split into two effects: one that animates toplevel windows and | 66 | // split into two effects: one that animates toplevel windows and | ||
67 | // this one. In addition to popups, this effect also animates some | 67 | // this one. In addition to popups, this effect also animates some | ||
68 | // special windows(e.g. notifications) because the monolithic version | 68 | // special windows(e.g. notifications) because the monolithic version | ||
69 | // was doing that. | 69 | // was doing that. | ||
70 | if (window.dock || window.splash || window.toolbar | 70 | if (window.dock || window.splash || window.toolbar | ||
71 | || window.notification || window.onScreenDisplay) { | 71 | || window.notification || window.onScreenDisplay | ||
72 | || window.criticalNotification) { | ||||
72 | return true; | 73 | return true; | ||
73 | } | 74 | } | ||
74 | 75 | | |||
75 | return false; | 76 | return false; | ||
76 | } | 77 | } | ||
77 | 78 | | |||
78 | var fadingPopupsEffect = { | 79 | var fadingPopupsEffect = { | ||
79 | loadConfig: function () { | 80 | loadConfig: function () { | ||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |