diff --git a/_src/core/htmlparser.js b/_src/core/htmlparser.js
index 1f184f17421c04caed7bbb451a6f372484252d01..6d6c32741396ce7fbf61ce1b04b4685e9c20ac46 100644
--- a/_src/core/htmlparser.js
+++ b/_src/core/htmlparser.js
@@ -9,7 +9,7 @@ var htmlparser = UE.htmlparser = function (htmlstr) {
re_attr = /([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g;
var uNode = UE.uNode,
- needparentNode = {
+ needParentNode = {
'td':'tr',
'tr':'tbody',
'tbody':'table',
@@ -33,7 +33,7 @@ var htmlparser = UE.htmlparser = function (htmlstr) {
function element(parent, tagName, htmlattr) {
var needParentTag;
- if (needParentTag = needparentNode[tagName]) {
+ if (needParentTag = needParentNode[tagName]) {
if (tagName == parent.tagName) {
parent = parent.parentNode;
} else if (utils.isArray(needParentTag) ? utils.indexOf(needParentTag, parent.tagName) == -1 : needParentTag != parent.tagName) {
diff --git a/_src/plugins/wordcount.js b/_src/plugins/wordcount.js
index 6007e8ae1eec34a030962f0bde095b8e888aa203..ea769634e4f47a0e4e26d4132ce85396cf9de0c2 100644
--- a/_src/plugins/wordcount.js
+++ b/_src/plugins/wordcount.js
@@ -21,11 +21,11 @@ UE.plugins['wordcount'] = function(){
domUtils.on(me.body,"keyup",function(evt){
var code = evt.keyCode||evt.which,
//忽略的按键,ctr,alt,shift,方向键
- ignore = {"16":1,"18":1,"20":1,"37":1,"38":1,"39":1,"40":1};
- if(code in ignore) return;
+ ignores = {"16":1,"18":1,"20":1,"37":1,"38":1,"39":1,"40":1};
+ if(code in ignores) return;
clearTimeout(timer);
timer = setTimeout(function(){
- me.fireEvent('wordcount')
+ me.fireEvent('wordcount');
},200)
})
});