浏览代码

修复sonar扫描问题

guohh 4 年之前
父节点
当前提交
970d6cde57
共有 1 个文件被更改,包括 38 次插入38 次删除
  1. 38 38
      display-server/src/main/webapp/res/js/ui/wm-css3animate.js

+ 38 - 38
display-server/src/main/webapp/res/js/ui/wm-css3animate.js

@ -1,43 +1,43 @@
1 1
/**
2 2
 * wm.css3animate - a css3 animation library that supports chaning/callbacks
3 3
 */
4
 /*  EXAMPLE
5

6
  $("#animate").css3Animate({
7
        width: "100px",
8
        height: "100px",
9
        x: "20%",
10
        y: "30%",
11
        time: "1000ms",
12
        opacity: .5,
13
        callback: function () {
14
            //execute when finished
15
        }
16
    });
17

18
    //Chain animations
19
    $("#animate").css3Animate({
20
        x: 20,
21
        y: 30,
22
        time: "300ms",
23
        callback: function () {
24
            $("#animate").css3Animate({
25
                x: 20,
26
                y: 30,
27
                time: "500ms",
28
                previous: true,
29
                callback: function () {
30
                    reset();
31
                }
32
            });
33
        }
34
    });
35
 */
36

37
 /* global wm*/
38
 /* global numOnly*/
39
define(["jcl","wmBase"],function($){
40
	"use strict";
4
/*  EXAMPLE
5

6
 $("#animate").css3Animate({
7
       width: "100px",
8
       height: "100px",
9
       x: "20%",
10
       y: "30%",
11
       time: "1000ms",
12
       opacity: .5,
13
       callback: function () {
14
           //execute when finished
15
       }
16
   });
17

18
   //Chain animations
19
   $("#animate").css3Animate({
20
       x: 20,
21
       y: 30,
22
       time: "300ms",
23
       callback: function () {
24
           $("#animate").css3Animate({
25
               x: 20,
26
               y: 30,
27
               time: "500ms",
28
               previous: true,
29
               callback: function () {
30
                   reset();
31
               }
32
           });
33
       }
34
   });
35
*/
36

37
/* global wm*/
38
/* global numOnly*/
39
define(["jcl"],function($){
40
    "use strict";
41 41
    var cache = [];
42 42
    var objId = function(obj) {
43 43
        if (!obj.wmCSS3AnimateId) obj.wmCSS3AnimateId = $.uuid();
@ -218,7 +218,7 @@ define(["jcl","wmBase"],function($){
218 218
                this.countStack++;
219 219

220 220
                var that = this,
221
                    duration;
221
                  duration;
222 222
                var style = window.getComputedStyle(this.el);
223 223
                if (classMode) {
224 224
                    //get the duration