Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0.6 版本 #27

Merged
merged 3 commits into from Nov 30, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -11,7 +11,7 @@
###change log

###1.0.6:
重构代码,修改定义变量的bug
重构代码,修改定义变量的bug,增加对版本号的标注 baidu.template.versions

###1.0.5:
修改可能造成内存泄露的变量及方法直接挂在baidu.template命名空间下
Expand Down
6 changes: 5 additions & 1 deletion baiduTemplate.js
Expand Up @@ -57,7 +57,11 @@
};

//取得命名空间 baidu.template
bt = baidu.template;
var bt = baidu.template;

//标记当前版本
bt.versions = bt.versions || [];
bt.versions.push('1.0.6');

//缓存 将对应id模板生成的函数缓存下来。
bt.cache = {};
Expand Down