Pārlūkot izejas kodu

修复sonar扫描问题

guohh 4 gadi atpakaļ
vecāks
revīzija
1f430db4a7

+ 4 - 1
push-server/web/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 = {

+ 3 - 1
push-server/web/res/js/ui/wm-css3animate.js

@ -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 = {

+ 3 - 0
push-server/web/res/js/ui/wm-tooltip.js

@ -42,6 +42,9 @@ define(['util'], function(){
42 42
		}else if(typeof ele =="string"){
43 43
			e = $("#"+ele);
44 44
		}
45
    if (!e) {
46
      return;
47
    }
45 48
		var o = e.offset();
46 49
		var h = e.height();
47 50
		var w = e.width();

+ 4 - 2
push-server/web/res/js/ui/wm-webui.js

@ -1,6 +1,8 @@
1 1
define(function($){
2
	if(!window["WmWebUI"]){
3
		var wmWebUI = window["WmWebUI"] = {};
2
	var wmWebUI = window["WmWebUI"];
3

4
	if(wmWebUI){
5
		wmWebUI = window["WmWebUI"] = {};
4 6
		wmWebUI.tags = {}
5 7
	}
6 8