Browse Source

修复sonar扫描问题

guohh 4 years ago
parent
commit
5b1e48a1cd

+ 4 - 1
display-client/assets/display-client/res/js/ui/wm-animate.js

@ -92,7 +92,10 @@ define(["jcl"],function($){
92 92
        var that = this;
93 93
        $(this.el).bind("destroy", function() {
94 94
            var id = that.el.wmAnimateId;
95
            if (cache[id]) delete cache[id];
95

96
            if (cache[id]) {
97
              cache[id] = null;
98
            }
96 99
        });
97 100
    };
98 101
    Animate.prototype = {

+ 4 - 2
display-client/assets/display-client/res/js/ui/wm-css3animate.js

@ -36,7 +36,7 @@
36 36

37 37
 /* global wm*/
38 38
 /* global numOnly*/
39
define(["jcl"],function($){
39
define(["jcl","wmBase"],function($){
40 40
	"use strict";
41 41
    var cache = [];
42 42
    var objId = function(obj) {
@ -111,7 +111,9 @@ define(["jcl"],function($){
111 111
            $(this.el).bind("destroy", function() {
112 112
                var id = that.el.wmCSS3AnimateId;
113 113
                that.callbacksStack = [];
114
                if (cache[id]) delete cache[id];
114
                if (cache[id]) {
115
                    cache[id] = null;
116
                }
115 117
            });
116 118
        };
117 119
        css3Animate.prototype = {

+ 5 - 0
display-client/assets/display-client/res/js/ui/wm-tooltip.js

@ -32,6 +32,11 @@ define(["jcl","wmWebUI"], function($,WmWebUI){
32 32
		}else if(typeof ele =="string"){
33 33
			e = $("#"+ele);
34 34
		}
35

36
		if(!e){
37
			return ;
38
		}
39

35 40
		var o = e.offset();
36 41
		var h = e.height();
37 42
		var w = e.width();