From c9a299fda3528837c9072b34bb5b270eefe333d1 Mon Sep 17 00:00:00 2001
From: fengxiang <110431245@qq.com>
Date: Tue, 06 Feb 2018 17:09:07 +0800
Subject: [PATCH] 地图相关
---
src/main/webapp/js/moralmap.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/main/webapp/js/moralmap.js b/src/main/webapp/js/moralmap.js
index fd71c22..107a9c1 100644
--- a/src/main/webapp/js/moralmap.js
+++ b/src/main/webapp/js/moralmap.js
@@ -743,6 +743,9 @@
moralMap['_equipments'][key] = obj;
}
moralMap.getEquipment = function(key) {
+ if(key == null){
+ return null;
+ }
key = String.prototype.toLowerCase.call(key);
if(typeof moralMap['_equipments'] === 'object') {
return moralMap['_equipments'][key];
--
Gitblit v1.8.0