[effects/morphingpopups] Put "use strict" at the beginning of the script
This commit is contained in:
parent
55dec40704
commit
0155ee1a03
1 changed files with 3 additions and 5 deletions
|
@ -17,17 +17,16 @@ GNU General Public License for more details.
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
/*global effect, effects, animate, animationTime, Effect*/
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
var morphingEffect = {
|
var morphingEffect = {
|
||||||
duration: animationTime(150),
|
duration: animationTime(150),
|
||||||
loadConfig: function () {
|
loadConfig: function () {
|
||||||
"use strict";
|
|
||||||
morphingEffect.duration = animationTime(150);
|
morphingEffect.duration = animationTime(150);
|
||||||
},
|
},
|
||||||
|
|
||||||
geometryChange: function (window, oldGeometry) {
|
geometryChange: function (window, oldGeometry) {
|
||||||
"use strict";
|
|
||||||
|
|
||||||
//only tooltips and notifications
|
//only tooltips and notifications
|
||||||
if (!window.tooltip && !window.notification) {
|
if (!window.tooltip && !window.notification) {
|
||||||
return;
|
return;
|
||||||
|
@ -130,7 +129,6 @@ var morphingEffect = {
|
||||||
},
|
},
|
||||||
|
|
||||||
init: function () {
|
init: function () {
|
||||||
"use strict";
|
|
||||||
effect.configChanged.connect(morphingEffect.loadConfig);
|
effect.configChanged.connect(morphingEffect.loadConfig);
|
||||||
effects.windowGeometryShapeChanged.connect(morphingEffect.geometryChange);
|
effects.windowGeometryShapeChanged.connect(morphingEffect.geometryChange);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue