提交 75c52a73 编写于 作者: K kener

手误代码优化 局部变量溢出

上级 9abf350c
......@@ -97,7 +97,7 @@ define(function (require) {
if (!opt) {
return '';
}
cssText = [];
var cssText = [];
if (opt.transitionDuration) {
var transitionText = 'left ' + opt.transitionDuration + 's,'
+ 'top ' + opt.transitionDuration + 's';
......@@ -1301,7 +1301,7 @@ define(function (require) {
/**
* html转码的方法
*/
_encodeHTML = function (source) {
function _encodeHTML(source) {
return String(source)
.replace(/&/g, '&')
.replace(/</g, '&lt;')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册