Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 2fac31b4 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

[effects/logout] Put "use strict" at the beginning of the script

parent a652aaf3
......@@ -19,17 +19,17 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************/
/*global effect, effects, animate, animationTime, Effect*/
"use strict";
var logoutEffect = {
inDuration: animationTime(800),
outDuration: animationTime(400),
loadConfig: function () {
"use strict";
logoutEffect.inDuration = animationTime(800);
logoutEffect.outDuration = animationTime(400);
},
isLogoutWindow: function (window) {
"use strict";
if (window.windowClass === "ksmserver ksmserver") {
return true;
}
......@@ -39,7 +39,6 @@ var logoutEffect = {
return false;
},
opened: function (window) {
"use strict";
if (!logoutEffect.isLogoutWindow(window)) {
return;
}
......@@ -57,7 +56,6 @@ var logoutEffect = {
});
},
closed: function (window) {
"use strict";
if (!logoutEffect.isLogoutWindow(window)) {
return;
}
......@@ -75,7 +73,6 @@ var logoutEffect = {
});
},
init: function () {
"use strict";
logoutEffect.loadConfig();
effects.windowAdded.connect(logoutEffect.opened);
effects.windowShown.connect(logoutEffect.opened);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment