Skip to content

Commit

Permalink
fix duplicate import util/template/trimpath error
Browse files Browse the repository at this point in the history
  • Loading branch information
genify committed Jun 22, 2018
1 parent 9391923 commit 87fa22d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
--------------------------------------------------------
- BUG修复模块
* 修正 util/cache/list 模块 GC 异常
* 修正 util/template/trimpath 重复引入异常

0.4.9 (2018-04-12)
--------------------------------------------------------
Expand Down
19 changes: 19 additions & 0 deletions src/util/encode/demo/md5.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<title>NEJ实例 - JSON接口</title>
<meta charset="utf-8" />
</head>
<body>
<script src="../../../define.js"></script>
<script>
NEJ.define([
'util/encode/md5'
],function(u){
var x = u._$str2hex('{"a":"中文"}',false);
console.log(x);

});
</script>
</body>
</html>
2 changes: 2 additions & 0 deletions src/util/template/trimpath.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
TrimPath = {};
if (typeof exports!=='undefined')
TrimPath = exports;
}else{
return;
}
// variable declaration
var _tcache = {}, // jst string cache
Expand Down

0 comments on commit 87fa22d

Please sign in to comment.