/* automatically generated by JSCoverage - do not edit */
try {
  if (typeof top === 'object' && top !== null && typeof top.opener === 'object' && top.opener !== null) {
    // this is a browser window that was opened from another window

    if (! top.opener._$jscoverage) {
      top.opener._$jscoverage = {};
    }
  }
}
catch (e) {}

try {
  if (typeof top === 'object' && top !== null) {
    // this is a browser window

    try {
      if (typeof top.opener === 'object' && top.opener !== null && top.opener._$jscoverage) {
        top._$jscoverage = top.opener._$jscoverage;
      }
    }
    catch (e) {}

    if (! top._$jscoverage) {
      top._$jscoverage = {};
    }
  }
}
catch (e) {}

try {
  if (typeof top === 'object' && top !== null && top._$jscoverage) {
    _$jscoverage = top._$jscoverage;
  }
}
catch (e) {}
if (typeof _$jscoverage !== 'object') {
  _$jscoverage = {};
}
if (! _$jscoverage['plugins/wordcount.js']) {
  _$jscoverage['plugins/wordcount.js'] = [];
  _$jscoverage['plugins/wordcount.js'][13] = 0;
  _$jscoverage['plugins/wordcount.js'][14] = 0;
  _$jscoverage['plugins/wordcount.js'][15] = 0;
  _$jscoverage['plugins/wordcount.js'][16] = 0;
  _$jscoverage['plugins/wordcount.js'][18] = 0;
  _$jscoverage['plugins/wordcount.js'][19] = 0;
  _$jscoverage['plugins/wordcount.js'][20] = 0;
  _$jscoverage['plugins/wordcount.js'][21] = 0;
  _$jscoverage['plugins/wordcount.js'][22] = 0;
  _$jscoverage['plugins/wordcount.js'][25] = 0;
  _$jscoverage['plugins/wordcount.js'][26] = 0;
  _$jscoverage['plugins/wordcount.js'][27] = 0;
  _$jscoverage['plugins/wordcount.js'][28] = 0;
}
_$jscoverage['plugins/wordcount.js'].source = ["<span class=\"c\">///import core</span>","<span class=\"c\">///commands &#23383;&#25968;&#32479;&#35745;</span>","<span class=\"c\">///commandsName  WordCount,wordCount</span>","<span class=\"c\">///commandsTitle  &#23383;&#25968;&#32479;&#35745;</span>","<span class=\"c\">/*</span>","<span class=\"c\"> * Created by JetBrains WebStorm.</span>","<span class=\"c\"> * User: taoqili</span>","<span class=\"c\"> * Date: 11-9-7</span>","<span class=\"c\"> * Time: &#19979;&#21320;8:18</span>","<span class=\"c\"> * To change this template use File | Settings | File Templates.</span>","<span class=\"c\"> */</span>","","UE<span class=\"k\">.</span>plugins<span class=\"k\">[</span><span class=\"s\">'wordcount'</span><span class=\"k\">]</span> <span class=\"k\">=</span> <span class=\"k\">function</span><span class=\"k\">()</span><span class=\"k\">{</span>","    <span class=\"k\">var</span> me <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">;</span>","    me<span class=\"k\">.</span>addListener<span class=\"k\">(</span><span class=\"s\">'contentchange'</span><span class=\"k\">,</span><span class=\"k\">function</span><span class=\"k\">()</span><span class=\"k\">{</span>","        me<span class=\"k\">.</span>fireEvent<span class=\"k\">(</span><span class=\"s\">'wordcount'</span><span class=\"k\">);</span>","    <span class=\"k\">}</span><span class=\"k\">);</span>","    <span class=\"k\">var</span> timer<span class=\"k\">;</span>","    me<span class=\"k\">.</span>addListener<span class=\"k\">(</span><span class=\"s\">'ready'</span><span class=\"k\">,</span><span class=\"k\">function</span><span class=\"k\">()</span><span class=\"k\">{</span>","        <span class=\"k\">var</span> me <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">;</span>","        domUtils<span class=\"k\">.</span>on<span class=\"k\">(</span>me<span class=\"k\">.</span>body<span class=\"k\">,</span><span class=\"s\">\"keyup\"</span><span class=\"k\">,</span><span class=\"k\">function</span><span class=\"k\">(</span>evt<span class=\"k\">)</span><span class=\"k\">{</span>","            <span class=\"k\">var</span> code <span class=\"k\">=</span> evt<span class=\"k\">.</span>keyCode<span class=\"k\">||</span>evt<span class=\"k\">.</span>which<span class=\"k\">,</span>","                <span class=\"c\">//&#24573;&#30053;&#30340;&#25353;&#38190;,ctr,alt,shift,&#26041;&#21521;&#38190;</span>","                ignores <span class=\"k\">=</span> <span class=\"k\">{</span><span class=\"s\">\"16\"</span><span class=\"k\">:</span><span class=\"s\">1</span><span class=\"k\">,</span><span class=\"s\">\"18\"</span><span class=\"k\">:</span><span class=\"s\">1</span><span class=\"k\">,</span><span class=\"s\">\"20\"</span><span class=\"k\">:</span><span class=\"s\">1</span><span class=\"k\">,</span><span class=\"s\">\"37\"</span><span class=\"k\">:</span><span class=\"s\">1</span><span class=\"k\">,</span><span class=\"s\">\"38\"</span><span class=\"k\">:</span><span class=\"s\">1</span><span class=\"k\">,</span><span class=\"s\">\"39\"</span><span class=\"k\">:</span><span class=\"s\">1</span><span class=\"k\">,</span><span class=\"s\">\"40\"</span><span class=\"k\">:</span><span class=\"s\">1</span><span class=\"k\">}</span><span class=\"k\">;</span>","            <span class=\"k\">if</span><span class=\"k\">(</span>code <span class=\"k\">in</span> ignores<span class=\"k\">)</span> <span class=\"k\">return</span><span class=\"k\">;</span>","            clearTimeout<span class=\"k\">(</span>timer<span class=\"k\">);</span>","            timer <span class=\"k\">=</span> setTimeout<span class=\"k\">(</span><span class=\"k\">function</span><span class=\"k\">()</span><span class=\"k\">{</span>","                me<span class=\"k\">.</span>fireEvent<span class=\"k\">(</span><span class=\"s\">'wordcount'</span><span class=\"k\">);</span>","            <span class=\"k\">}</span><span class=\"k\">,</span><span class=\"s\">200</span><span class=\"k\">)</span>","        <span class=\"k\">}</span><span class=\"k\">)</span>","    <span class=\"k\">}</span><span class=\"k\">);</span>","<span class=\"k\">}</span><span class=\"k\">;</span>"];
_$jscoverage['plugins/wordcount.js'][13]++;
UE.plugins.wordcount = (function () {
  _$jscoverage['plugins/wordcount.js'][14]++;
  var me = this;
  _$jscoverage['plugins/wordcount.js'][15]++;
  me.addListener("contentchange", (function () {
  _$jscoverage['plugins/wordcount.js'][16]++;
  me.fireEvent("wordcount");
}));
  _$jscoverage['plugins/wordcount.js'][18]++;
  var timer;
  _$jscoverage['plugins/wordcount.js'][19]++;
  me.addListener("ready", (function () {
  _$jscoverage['plugins/wordcount.js'][20]++;
  var me = this;
  _$jscoverage['plugins/wordcount.js'][21]++;
  domUtils.on(me.body, "keyup", (function (evt) {
  _$jscoverage['plugins/wordcount.js'][22]++;
  var code = (evt.keyCode || evt.which), ignores = {"16": 1, "18": 1, "20": 1, "37": 1, "38": 1, "39": 1, "40": 1};
  _$jscoverage['plugins/wordcount.js'][25]++;
  if ((code in ignores)) {
    _$jscoverage['plugins/wordcount.js'][25]++;
    return;
  }
  _$jscoverage['plugins/wordcount.js'][26]++;
  clearTimeout(timer);
  _$jscoverage['plugins/wordcount.js'][27]++;
  timer = setTimeout((function () {
  _$jscoverage['plugins/wordcount.js'][28]++;
  me.fireEvent("wordcount");
}), 200);
}));
}));
});
