/* 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['ui/shortcutmenu.js']) {
  _$jscoverage['ui/shortcutmenu.js'] = [];
  _$jscoverage['ui/shortcutmenu.js'][1] = 0;
  _$jscoverage['ui/shortcutmenu.js'][2] = 0;
  _$jscoverage['ui/shortcutmenu.js'][8] = 0;
  _$jscoverage['ui/shortcutmenu.js'][12] = 0;
  _$jscoverage['ui/shortcutmenu.js'][13] = 0;
  _$jscoverage['ui/shortcutmenu.js'][14] = 0;
  _$jscoverage['ui/shortcutmenu.js'][17] = 0;
  _$jscoverage['ui/shortcutmenu.js'][19] = 0;
  _$jscoverage['ui/shortcutmenu.js'][23] = 0;
  _$jscoverage['ui/shortcutmenu.js'][24] = 0;
  _$jscoverage['ui/shortcutmenu.js'][25] = 0;
  _$jscoverage['ui/shortcutmenu.js'][26] = 0;
  _$jscoverage['ui/shortcutmenu.js'][27] = 0;
  _$jscoverage['ui/shortcutmenu.js'][30] = 0;
  _$jscoverage['ui/shortcutmenu.js'][33] = 0;
  _$jscoverage['ui/shortcutmenu.js'][34] = 0;
  _$jscoverage['ui/shortcutmenu.js'][36] = 0;
  _$jscoverage['ui/shortcutmenu.js'][39] = 0;
  _$jscoverage['ui/shortcutmenu.js'][48] = 0;
  _$jscoverage['ui/shortcutmenu.js'][49] = 0;
  _$jscoverage['ui/shortcutmenu.js'][50] = 0;
  _$jscoverage['ui/shortcutmenu.js'][51] = 0;
  _$jscoverage['ui/shortcutmenu.js'][52] = 0;
  _$jscoverage['ui/shortcutmenu.js'][53] = 0;
  _$jscoverage['ui/shortcutmenu.js'][54] = 0;
  _$jscoverage['ui/shortcutmenu.js'][55] = 0;
  _$jscoverage['ui/shortcutmenu.js'][56] = 0;
  _$jscoverage['ui/shortcutmenu.js'][59] = 0;
  _$jscoverage['ui/shortcutmenu.js'][60] = 0;
  _$jscoverage['ui/shortcutmenu.js'][61] = 0;
  _$jscoverage['ui/shortcutmenu.js'][62] = 0;
  _$jscoverage['ui/shortcutmenu.js'][63] = 0;
  _$jscoverage['ui/shortcutmenu.js'][64] = 0;
  _$jscoverage['ui/shortcutmenu.js'][71] = 0;
  _$jscoverage['ui/shortcutmenu.js'][72] = 0;
  _$jscoverage['ui/shortcutmenu.js'][73] = 0;
  _$jscoverage['ui/shortcutmenu.js'][75] = 0;
  _$jscoverage['ui/shortcutmenu.js'][76] = 0;
  _$jscoverage['ui/shortcutmenu.js'][81] = 0;
  _$jscoverage['ui/shortcutmenu.js'][82] = 0;
  _$jscoverage['ui/shortcutmenu.js'][83] = 0;
  _$jscoverage['ui/shortcutmenu.js'][89] = 0;
  _$jscoverage['ui/shortcutmenu.js'][90] = 0;
  _$jscoverage['ui/shortcutmenu.js'][91] = 0;
  _$jscoverage['ui/shortcutmenu.js'][93] = 0;
  _$jscoverage['ui/shortcutmenu.js'][94] = 0;
  _$jscoverage['ui/shortcutmenu.js'][95] = 0;
  _$jscoverage['ui/shortcutmenu.js'][101] = 0;
  _$jscoverage['ui/shortcutmenu.js'][102] = 0;
  _$jscoverage['ui/shortcutmenu.js'][104] = 0;
  _$jscoverage['ui/shortcutmenu.js'][108] = 0;
  _$jscoverage['ui/shortcutmenu.js'][109] = 0;
  _$jscoverage['ui/shortcutmenu.js'][110] = 0;
  _$jscoverage['ui/shortcutmenu.js'][111] = 0;
  _$jscoverage['ui/shortcutmenu.js'][114] = 0;
  _$jscoverage['ui/shortcutmenu.js'][115] = 0;
  _$jscoverage['ui/shortcutmenu.js'][116] = 0;
  _$jscoverage['ui/shortcutmenu.js'][119] = 0;
  _$jscoverage['ui/shortcutmenu.js'][122] = 0;
  _$jscoverage['ui/shortcutmenu.js'][127] = 0;
  _$jscoverage['ui/shortcutmenu.js'][128] = 0;
  _$jscoverage['ui/shortcutmenu.js'][129] = 0;
  _$jscoverage['ui/shortcutmenu.js'][131] = 0;
  _$jscoverage['ui/shortcutmenu.js'][132] = 0;
  _$jscoverage['ui/shortcutmenu.js'][134] = 0;
  _$jscoverage['ui/shortcutmenu.js'][137] = 0;
  _$jscoverage['ui/shortcutmenu.js'][138] = 0;
  _$jscoverage['ui/shortcutmenu.js'][139] = 0;
  _$jscoverage['ui/shortcutmenu.js'][141] = 0;
  _$jscoverage['ui/shortcutmenu.js'][142] = 0;
  _$jscoverage['ui/shortcutmenu.js'][143] = 0;
  _$jscoverage['ui/shortcutmenu.js'][144] = 0;
  _$jscoverage['ui/shortcutmenu.js'][148] = 0;
  _$jscoverage['ui/shortcutmenu.js'][149] = 0;
  _$jscoverage['ui/shortcutmenu.js'][151] = 0;
  _$jscoverage['ui/shortcutmenu.js'][152] = 0;
  _$jscoverage['ui/shortcutmenu.js'][153] = 0;
  _$jscoverage['ui/shortcutmenu.js'][154] = 0;
  _$jscoverage['ui/shortcutmenu.js'][156] = 0;
  _$jscoverage['ui/shortcutmenu.js'][157] = 0;
  _$jscoverage['ui/shortcutmenu.js'][161] = 0;
  _$jscoverage['ui/shortcutmenu.js'][162] = 0;
  _$jscoverage['ui/shortcutmenu.js'][163] = 0;
  _$jscoverage['ui/shortcutmenu.js'][164] = 0;
  _$jscoverage['ui/shortcutmenu.js'][165] = 0;
  _$jscoverage['ui/shortcutmenu.js'][169] = 0;
  _$jscoverage['ui/shortcutmenu.js'][170] = 0;
  _$jscoverage['ui/shortcutmenu.js'][171] = 0;
  _$jscoverage['ui/shortcutmenu.js'][173] = 0;
  _$jscoverage['ui/shortcutmenu.js'][174] = 0;
  _$jscoverage['ui/shortcutmenu.js'][175] = 0;
  _$jscoverage['ui/shortcutmenu.js'][179] = 0;
  _$jscoverage['ui/shortcutmenu.js'][180] = 0;
  _$jscoverage['ui/shortcutmenu.js'][182] = 0;
  _$jscoverage['ui/shortcutmenu.js'][185] = 0;
  _$jscoverage['ui/shortcutmenu.js'][186] = 0;
  _$jscoverage['ui/shortcutmenu.js'][187] = 0;
  _$jscoverage['ui/shortcutmenu.js'][192] = 0;
  _$jscoverage['ui/shortcutmenu.js'][193] = 0;
  _$jscoverage['ui/shortcutmenu.js'][194] = 0;
  _$jscoverage['ui/shortcutmenu.js'][195] = 0;
  _$jscoverage['ui/shortcutmenu.js'][196] = 0;
  _$jscoverage['ui/shortcutmenu.js'][198] = 0;
  _$jscoverage['ui/shortcutmenu.js'][200] = 0;
  _$jscoverage['ui/shortcutmenu.js'][203] = 0;
  _$jscoverage['ui/shortcutmenu.js'][209] = 0;
  _$jscoverage['ui/shortcutmenu.js'][211] = 0;
  _$jscoverage['ui/shortcutmenu.js'][212] = 0;
  _$jscoverage['ui/shortcutmenu.js'][214] = 0;
  _$jscoverage['ui/shortcutmenu.js'][217] = 0;
  _$jscoverage['ui/shortcutmenu.js'][218] = 0;
  _$jscoverage['ui/shortcutmenu.js'][219] = 0;
  _$jscoverage['ui/shortcutmenu.js'][224] = 0;
  _$jscoverage['ui/shortcutmenu.js'][225] = 0;
  _$jscoverage['ui/shortcutmenu.js'][228] = 0;
  _$jscoverage['ui/shortcutmenu.js'][229] = 0;
}
_$jscoverage['ui/shortcutmenu.js'].source = ["<span class=\"k\">(</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","    <span class=\"k\">var</span> UI <span class=\"k\">=</span> baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>ui<span class=\"k\">,</span>","        UIBase <span class=\"k\">=</span> UI<span class=\"k\">.</span>UIBase<span class=\"k\">,</span>","        uiUtils <span class=\"k\">=</span> UI<span class=\"k\">.</span>uiUtils<span class=\"k\">,</span>","        utils <span class=\"k\">=</span> baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>utils<span class=\"k\">,</span>","        domUtils <span class=\"k\">=</span> baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>dom<span class=\"k\">.</span>domUtils<span class=\"k\">;</span>","","    <span class=\"k\">var</span> allMenus <span class=\"k\">=</span> <span class=\"k\">[],</span><span class=\"c\">//&#23384;&#20648;&#25152;&#26377;&#24555;&#25463;&#33756;&#21333;</span>","        timeID<span class=\"k\">,</span>","        isSubMenuShow <span class=\"k\">=</span> <span class=\"k\">false</span><span class=\"k\">;</span><span class=\"c\">//&#26159;&#21542;&#26377;&#23376;pop&#26174;&#31034;</span>","","    <span class=\"k\">var</span> ShortCutMenu <span class=\"k\">=</span> UI<span class=\"k\">.</span>ShortCutMenu <span class=\"k\">=</span> <span class=\"k\">function</span> <span class=\"k\">(</span>options<span class=\"k\">)</span> <span class=\"k\">{</span>","        <span class=\"k\">this</span><span class=\"k\">.</span>initOptions <span class=\"k\">(</span>options<span class=\"k\">);</span>","        <span class=\"k\">this</span><span class=\"k\">.</span>initShortCutMenu <span class=\"k\">();</span>","    <span class=\"k\">}</span><span class=\"k\">;</span>","","    ShortCutMenu<span class=\"k\">.</span>postHide <span class=\"k\">=</span> hideAllMenu<span class=\"k\">;</span>","","    ShortCutMenu<span class=\"k\">.</span>prototype <span class=\"k\">=</span> <span class=\"k\">{</span>","        isHidden <span class=\"k\">:</span> <span class=\"k\">true</span> <span class=\"k\">,</span>","        SPACE <span class=\"k\">:</span> <span class=\"s\">5</span> <span class=\"k\">,</span>","        initShortCutMenu <span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>items <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>items <span class=\"k\">||</span> <span class=\"k\">[];</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>initUIBase <span class=\"k\">();</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>initItems <span class=\"k\">();</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>initEvent <span class=\"k\">();</span>","            allMenus<span class=\"k\">.</span>push <span class=\"k\">(</span><span class=\"k\">this</span><span class=\"k\">);</span>","        <span class=\"k\">}</span> <span class=\"k\">,</span>","        initEvent <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>","                doc <span class=\"k\">=</span> me<span class=\"k\">.</span>editor<span class=\"k\">.</span>document<span class=\"k\">;</span>","","            domUtils<span class=\"k\">.</span>on <span class=\"k\">(</span>doc <span class=\"k\">,</span> <span class=\"s\">\"mousemove\"</span> <span class=\"k\">,</span> <span class=\"k\">function</span> <span class=\"k\">(</span>e<span class=\"k\">)</span> <span class=\"k\">{</span>","                <span class=\"k\">if</span> <span class=\"k\">(</span>me<span class=\"k\">.</span>isHidden <span class=\"k\">===</span> <span class=\"k\">false</span><span class=\"k\">)</span> <span class=\"k\">{</span>","                    <span class=\"c\">//&#26377;pop&#26174;&#31034;&#23601;&#19981;&#38544;&#34255;&#24555;&#25463;&#33756;&#21333;</span>","                    <span class=\"k\">if</span> <span class=\"k\">(</span>me<span class=\"k\">.</span>getSubMenuMark <span class=\"k\">()</span> <span class=\"k\">||</span> me<span class=\"k\">.</span>eventType <span class=\"k\">==</span> <span class=\"s\">\"contextmenu\"</span><span class=\"k\">)</span>   <span class=\"k\">return</span><span class=\"k\">;</span>","","","                    <span class=\"k\">var</span> flag <span class=\"k\">=</span> <span class=\"k\">true</span><span class=\"k\">,</span>","                        el <span class=\"k\">=</span> me<span class=\"k\">.</span>getDom <span class=\"k\">(),</span>","                        wt <span class=\"k\">=</span> el<span class=\"k\">.</span>offsetWidth<span class=\"k\">,</span>","                        ht <span class=\"k\">=</span> el<span class=\"k\">.</span>offsetHeight<span class=\"k\">,</span>","                        distanceX <span class=\"k\">=</span> wt <span class=\"k\">/</span> <span class=\"s\">2</span> <span class=\"k\">+</span> me<span class=\"k\">.</span>SPACE<span class=\"k\">,</span><span class=\"c\">//&#36317;&#31163;&#20013;&#24515;X&#26631;&#20934;</span>","                        distanceY <span class=\"k\">=</span> ht <span class=\"k\">/</span> <span class=\"s\">2</span><span class=\"k\">,</span><span class=\"c\">//&#36317;&#31163;&#20013;&#24515;Y&#26631;&#20934;</span>","                        x <span class=\"k\">=</span> Math<span class=\"k\">.</span>abs <span class=\"k\">(</span>e<span class=\"k\">.</span>screenX <span class=\"k\">-</span> me<span class=\"k\">.</span>left<span class=\"k\">),</span><span class=\"c\">//&#31163;&#20013;&#24515;&#36317;&#31163;&#27178;&#22352;&#26631;</span>","                        y <span class=\"k\">=</span> Math<span class=\"k\">.</span>abs <span class=\"k\">(</span>e<span class=\"k\">.</span>screenY <span class=\"k\">-</span> me<span class=\"k\">.</span>top<span class=\"k\">);</span><span class=\"c\">//&#31163;&#20013;&#24515;&#36317;&#31163;&#32437;&#22352;&#26631;</span>","","                    clearTimeout <span class=\"k\">(</span>timeID<span class=\"k\">);</span>","                    timeID <span class=\"k\">=</span> setTimeout <span class=\"k\">(</span><span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","                        <span class=\"k\">if</span> <span class=\"k\">(</span>y <span class=\"k\">&gt;</span> <span class=\"s\">0</span> <span class=\"k\">&amp;&amp;</span> y <span class=\"k\">&lt;</span> distanceY<span class=\"k\">)</span> <span class=\"k\">{</span>","                            me<span class=\"k\">.</span>setOpacity <span class=\"k\">(</span>el <span class=\"k\">,</span> <span class=\"s\">\"1\"</span><span class=\"k\">);</span>","                        <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">if</span> <span class=\"k\">(</span>y <span class=\"k\">&gt;</span> distanceY <span class=\"k\">&amp;&amp;</span> y <span class=\"k\">&lt;</span> distanceY <span class=\"k\">+</span> <span class=\"s\">70</span><span class=\"k\">)</span> <span class=\"k\">{</span>","                            me<span class=\"k\">.</span>setOpacity <span class=\"k\">(</span>el <span class=\"k\">,</span> <span class=\"s\">\"0.5\"</span><span class=\"k\">);</span>","                            flag <span class=\"k\">=</span> <span class=\"k\">false</span><span class=\"k\">;</span>","                        <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">if</span> <span class=\"k\">(</span>y <span class=\"k\">&gt;</span> distanceY <span class=\"k\">+</span> <span class=\"s\">70</span> <span class=\"k\">&amp;&amp;</span> y <span class=\"k\">&lt;</span> distanceY <span class=\"k\">+</span> <span class=\"s\">140</span><span class=\"k\">)</span> <span class=\"k\">{</span>","                            me<span class=\"k\">.</span>hide <span class=\"k\">();</span>","                        <span class=\"k\">}</span>","","                        <span class=\"k\">if</span> <span class=\"k\">(</span>flag <span class=\"k\">&amp;&amp;</span> x <span class=\"k\">&gt;</span> <span class=\"s\">0</span> <span class=\"k\">&amp;&amp;</span> x <span class=\"k\">&lt;</span> distanceX<span class=\"k\">)</span> <span class=\"k\">{</span>","                            me<span class=\"k\">.</span>setOpacity <span class=\"k\">(</span>el <span class=\"k\">,</span> <span class=\"s\">\"1\"</span><span class=\"k\">)</span>","                        <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">if</span> <span class=\"k\">(</span>x <span class=\"k\">&gt;</span> distanceX <span class=\"k\">&amp;&amp;</span> x <span class=\"k\">&lt;</span> distanceX <span class=\"k\">+</span> <span class=\"s\">70</span><span class=\"k\">)</span> <span class=\"k\">{</span>","                            me<span class=\"k\">.</span>setOpacity <span class=\"k\">(</span>el <span class=\"k\">,</span> <span class=\"s\">\"0.5\"</span><span class=\"k\">)</span>","                        <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">if</span> <span class=\"k\">(</span>x <span class=\"k\">&gt;</span> distanceX <span class=\"k\">+</span> <span class=\"s\">70</span> <span class=\"k\">&amp;&amp;</span> x <span class=\"k\">&lt;</span> distanceX <span class=\"k\">+</span> <span class=\"s\">140</span><span class=\"k\">)</span> <span class=\"k\">{</span>","                            me<span class=\"k\">.</span>hide <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>","","            <span class=\"c\">//ie\\ff&#19979; mouseout&#19981;&#20934;</span>","            <span class=\"k\">if</span> <span class=\"k\">(</span>browser<span class=\"k\">.</span>chrome<span class=\"k\">)</span> <span class=\"k\">{</span>","                domUtils<span class=\"k\">.</span>on <span class=\"k\">(</span>doc <span class=\"k\">,</span> <span class=\"s\">\"mouseout\"</span> <span class=\"k\">,</span> <span class=\"k\">function</span> <span class=\"k\">(</span>e<span class=\"k\">)</span> <span class=\"k\">{</span>","                    <span class=\"k\">var</span> relatedTgt <span class=\"k\">=</span> e<span class=\"k\">.</span>relatedTarget <span class=\"k\">||</span> e<span class=\"k\">.</span>toElement<span class=\"k\">;</span>","","                    <span class=\"k\">if</span> <span class=\"k\">(</span>relatedTgt <span class=\"k\">==</span> <span class=\"k\">null</span> <span class=\"k\">||</span> relatedTgt<span class=\"k\">.</span>tagName <span class=\"k\">==</span> <span class=\"s\">\"HTML\"</span><span class=\"k\">)</span> <span class=\"k\">{</span>","                        me<span class=\"k\">.</span>hide <span class=\"k\">();</span>","                    <span class=\"k\">}</span>","                <span class=\"k\">}</span><span class=\"k\">);</span>","            <span class=\"k\">}</span>","","            me<span class=\"k\">.</span>editor<span class=\"k\">.</span>addListener <span class=\"k\">(</span><span class=\"s\">\"afterhidepop\"</span> <span class=\"k\">,</span> <span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","                <span class=\"k\">if</span> <span class=\"k\">(!</span>me<span class=\"k\">.</span>isHidden<span class=\"k\">)</span> <span class=\"k\">{</span>","                    isSubMenuShow <span class=\"k\">=</span> <span class=\"k\">true</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>","        initItems <span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","            <span class=\"k\">if</span> <span class=\"k\">(</span>utils<span class=\"k\">.</span>isArray <span class=\"k\">(</span><span class=\"k\">this</span><span class=\"k\">.</span>items<span class=\"k\">))</span> <span class=\"k\">{</span>","                <span class=\"k\">for</span> <span class=\"k\">(</span><span class=\"k\">var</span> i <span class=\"k\">=</span> <span class=\"s\">0</span><span class=\"k\">,</span> len <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>items<span class=\"k\">.</span>length <span class=\"k\">;</span> i <span class=\"k\">&lt;</span> len <span class=\"k\">;</span> i<span class=\"k\">++)</span> <span class=\"k\">{</span>","                    <span class=\"k\">var</span> item <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>items<span class=\"k\">[</span>i<span class=\"k\">].</span>toLowerCase <span class=\"k\">();</span>","","                    <span class=\"k\">if</span> <span class=\"k\">(</span>UI<span class=\"k\">[</span>item<span class=\"k\">])</span> <span class=\"k\">{</span>","                        <span class=\"k\">this</span><span class=\"k\">.</span>items<span class=\"k\">[</span>i<span class=\"k\">]</span> <span class=\"k\">=</span> <span class=\"k\">new</span> UI<span class=\"k\">[</span>item<span class=\"k\">]</span> <span class=\"k\">(</span><span class=\"k\">this</span><span class=\"k\">.</span>editor<span class=\"k\">);</span>","                        <span class=\"k\">this</span><span class=\"k\">.</span>items<span class=\"k\">[</span>i<span class=\"k\">].</span>className <span class=\"k\">+=</span> <span class=\"s\">\" edui-shortcutsubmenu \"</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>","        setOpacity <span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">(</span>el <span class=\"k\">,</span> value<span class=\"k\">)</span> <span class=\"k\">{</span>","            <span class=\"k\">if</span> <span class=\"k\">(</span>browser<span class=\"k\">.</span>ie <span class=\"k\">&amp;&amp;</span> browser<span class=\"k\">.</span>version <span class=\"k\">&lt;</span> <span class=\"s\">9</span><span class=\"k\">)</span> <span class=\"k\">{</span>","                el<span class=\"k\">.</span>style<span class=\"k\">.</span>filter <span class=\"k\">=</span> <span class=\"s\">\"alpha(opacity = \"</span> <span class=\"k\">+</span> parseFloat <span class=\"k\">(</span>value<span class=\"k\">)</span> <span class=\"k\">*</span> <span class=\"s\">100</span> <span class=\"k\">+</span> <span class=\"s\">\");\"</span>","            <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">{</span>","                el<span class=\"k\">.</span>style<span class=\"k\">.</span>opacity <span class=\"k\">=</span> value<span class=\"k\">;</span>","            <span class=\"k\">}</span>","        <span class=\"k\">}</span> <span class=\"k\">,</span>","        getSubMenuMark <span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","            isSubMenuShow <span class=\"k\">=</span> <span class=\"k\">false</span><span class=\"k\">;</span>","            <span class=\"k\">var</span> layerEle <span class=\"k\">=</span> uiUtils<span class=\"k\">.</span>getFixedLayer <span class=\"k\">();</span>","            <span class=\"k\">var</span> list <span class=\"k\">=</span> domUtils<span class=\"k\">.</span>getElementsByTagName <span class=\"k\">(</span>layerEle <span class=\"k\">,</span> <span class=\"s\">\"div\"</span> <span class=\"k\">,</span> <span class=\"k\">function</span> <span class=\"k\">(</span>node<span class=\"k\">)</span> <span class=\"k\">{</span>","                <span class=\"k\">return</span> domUtils<span class=\"k\">.</span>hasClass <span class=\"k\">(</span>node <span class=\"k\">,</span> <span class=\"s\">\"edui-shortcutsubmenu edui-popup\"</span><span class=\"k\">)</span>","            <span class=\"k\">}</span><span class=\"k\">);</span>","","            <span class=\"k\">for</span> <span class=\"k\">(</span><span class=\"k\">var</span> i <span class=\"k\">=</span> <span class=\"s\">0</span><span class=\"k\">,</span> node <span class=\"k\">;</span> node <span class=\"k\">=</span> list<span class=\"k\">[</span>i<span class=\"k\">++]</span> <span class=\"k\">;)</span> <span class=\"k\">{</span>","                <span class=\"k\">if</span> <span class=\"k\">(</span>node<span class=\"k\">.</span>style<span class=\"k\">.</span>display <span class=\"k\">!=</span> <span class=\"s\">\"none\"</span><span class=\"k\">)</span> <span class=\"k\">{</span>","                    isSubMenuShow <span class=\"k\">=</span> <span class=\"k\">true</span><span class=\"k\">;</span>","                <span class=\"k\">}</span>","            <span class=\"k\">}</span>","            <span class=\"k\">return</span> isSubMenuShow<span class=\"k\">;</span>","        <span class=\"k\">}</span> <span class=\"k\">,</span>","        show <span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">(</span>e <span class=\"k\">,</span> hasContextmenu<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>","                offset <span class=\"k\">=</span> <span class=\"k\">{}</span><span class=\"k\">,</span>","                el <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>getDom <span class=\"k\">(),</span>","                fixedlayer <span class=\"k\">=</span> uiUtils<span class=\"k\">.</span>getFixedLayer <span class=\"k\">();</span>","","            <span class=\"k\">function</span> setPos <span class=\"k\">(</span>offset<span class=\"k\">)</span> <span class=\"k\">{</span>","                <span class=\"k\">if</span> <span class=\"k\">(</span>offset<span class=\"k\">.</span>left <span class=\"k\">&lt;</span> <span class=\"s\">0</span><span class=\"k\">)</span> <span class=\"k\">{</span>","                    offset<span class=\"k\">.</span>left <span class=\"k\">=</span> <span class=\"s\">0</span><span class=\"k\">;</span>","                <span class=\"k\">}</span>","                <span class=\"k\">if</span> <span class=\"k\">(</span>offset<span class=\"k\">.</span>top <span class=\"k\">&lt;</span> <span class=\"s\">0</span><span class=\"k\">)</span> <span class=\"k\">{</span>","                    offset<span class=\"k\">.</span>top <span class=\"k\">=</span> <span class=\"s\">0</span><span class=\"k\">;</span>","                <span class=\"k\">}</span>","                el<span class=\"k\">.</span>style<span class=\"k\">.</span>cssText <span class=\"k\">=</span> <span class=\"s\">\"position:absolute;left:\"</span> <span class=\"k\">+</span> offset<span class=\"k\">.</span>left <span class=\"k\">+</span> <span class=\"s\">\"px;top:\"</span> <span class=\"k\">+</span> offset<span class=\"k\">.</span>top <span class=\"k\">+</span> <span class=\"s\">\"px;\"</span><span class=\"k\">;</span>","            <span class=\"k\">}</span>","","            <span class=\"k\">function</span> setPosByCxtMenu <span class=\"k\">(</span>menu<span class=\"k\">)</span> <span class=\"k\">{</span>","                <span class=\"k\">if</span> <span class=\"k\">(!</span>menu<span class=\"k\">.</span>tagName<span class=\"k\">)</span> <span class=\"k\">{</span>","                    menu <span class=\"k\">=</span> menu<span class=\"k\">.</span>getDom <span class=\"k\">();</span>","                <span class=\"k\">}</span>","                offset<span class=\"k\">.</span>left <span class=\"k\">=</span> parseInt <span class=\"k\">(</span>menu<span class=\"k\">.</span>style<span class=\"k\">.</span>left<span class=\"k\">);</span>","                offset<span class=\"k\">.</span>top <span class=\"k\">=</span> parseInt <span class=\"k\">(</span>menu<span class=\"k\">.</span>style<span class=\"k\">.</span>top<span class=\"k\">);</span>","                offset<span class=\"k\">.</span>top <span class=\"k\">-=</span> el<span class=\"k\">.</span>offsetHeight <span class=\"k\">+</span> <span class=\"s\">15</span><span class=\"k\">;</span>","                setPos <span class=\"k\">(</span>offset<span class=\"k\">);</span>","            <span class=\"k\">}</span>","","","            me<span class=\"k\">.</span>eventType <span class=\"k\">=</span> e<span class=\"k\">.</span>type<span class=\"k\">;</span>","            el<span class=\"k\">.</span>style<span class=\"k\">.</span>cssText <span class=\"k\">=</span> <span class=\"s\">\"display:block;left:-9999px\"</span><span class=\"k\">;</span>","","            <span class=\"k\">if</span> <span class=\"k\">(</span>e<span class=\"k\">.</span>type <span class=\"k\">==</span> <span class=\"s\">\"contextmenu\"</span> <span class=\"k\">&amp;&amp;</span> hasContextmenu<span class=\"k\">)</span> <span class=\"k\">{</span>","                <span class=\"k\">var</span> menu <span class=\"k\">=</span> domUtils<span class=\"k\">.</span>getElementsByTagName <span class=\"k\">(</span>fixedlayer <span class=\"k\">,</span> <span class=\"s\">\"div\"</span> <span class=\"k\">,</span> <span class=\"s\">\"edui-contextmenu\"</span><span class=\"k\">)[</span><span class=\"s\">0</span><span class=\"k\">];</span>","                <span class=\"k\">if</span> <span class=\"k\">(</span>menu<span class=\"k\">)</span> <span class=\"k\">{</span>","                    setPosByCxtMenu <span class=\"k\">(</span>menu<span class=\"k\">)</span>","                <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">{</span>","                    me<span class=\"k\">.</span>editor<span class=\"k\">.</span>addListener <span class=\"k\">(</span><span class=\"s\">\"aftershowcontextmenu\"</span> <span class=\"k\">,</span> <span class=\"k\">function</span> <span class=\"k\">(</span>type <span class=\"k\">,</span> menu<span class=\"k\">)</span> <span class=\"k\">{</span>","                        setPosByCxtMenu <span class=\"k\">(</span>menu<span class=\"k\">);</span>","                    <span class=\"k\">}</span><span class=\"k\">);</span>","                <span class=\"k\">}</span>","            <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">{</span>","                offset <span class=\"k\">=</span> uiUtils<span class=\"k\">.</span>getViewportOffsetByEvent <span class=\"k\">(</span>e<span class=\"k\">);</span>","                offset<span class=\"k\">.</span>top <span class=\"k\">-=</span> el<span class=\"k\">.</span>offsetHeight <span class=\"k\">+</span> me<span class=\"k\">.</span>SPACE<span class=\"k\">;</span>","                offset<span class=\"k\">.</span>left <span class=\"k\">+=</span> me<span class=\"k\">.</span>SPACE <span class=\"k\">+</span> <span class=\"s\">20</span><span class=\"k\">;</span>","                setPos <span class=\"k\">(</span>offset<span class=\"k\">);</span>","                me<span class=\"k\">.</span>setOpacity <span class=\"k\">(</span>el <span class=\"k\">,</span> <span class=\"s\">0.2</span><span class=\"k\">);</span>","            <span class=\"k\">}</span>","","","            me<span class=\"k\">.</span>isHidden <span class=\"k\">=</span> <span class=\"k\">false</span><span class=\"k\">;</span>","            me<span class=\"k\">.</span>left <span class=\"k\">=</span> e<span class=\"k\">.</span>screenX <span class=\"k\">+</span> el<span class=\"k\">.</span>offsetWidth <span class=\"k\">/</span> <span class=\"s\">2</span> <span class=\"k\">-</span> me<span class=\"k\">.</span>SPACE<span class=\"k\">;</span>","            me<span class=\"k\">.</span>top <span class=\"k\">=</span> e<span class=\"k\">.</span>screenY <span class=\"k\">-</span> <span class=\"k\">(</span>el<span class=\"k\">.</span>offsetHeight <span class=\"k\">/</span> <span class=\"s\">2</span><span class=\"k\">)</span> <span class=\"k\">-</span> me<span class=\"k\">.</span>SPACE<span class=\"k\">;</span>","","            <span class=\"k\">if</span> <span class=\"k\">(</span>me<span class=\"k\">.</span>editor<span class=\"k\">)</span> <span class=\"k\">{</span>","                el<span class=\"k\">.</span>style<span class=\"k\">.</span>zIndex <span class=\"k\">=</span> me<span class=\"k\">.</span>editor<span class=\"k\">.</span>container<span class=\"k\">.</span>style<span class=\"k\">.</span>zIndex <span class=\"k\">*</span> <span class=\"s\">1</span> <span class=\"k\">+</span> <span class=\"s\">10</span><span class=\"k\">;</span>","                fixedlayer<span class=\"k\">.</span>style<span class=\"k\">.</span>zIndex <span class=\"k\">=</span> el<span class=\"k\">.</span>style<span class=\"k\">.</span>zIndex <span class=\"k\">-</span> <span class=\"s\">1</span><span class=\"k\">;</span>","            <span class=\"k\">}</span>","        <span class=\"k\">}</span> <span class=\"k\">,</span>","        hide <span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","            <span class=\"k\">if</span> <span class=\"k\">(</span><span class=\"k\">this</span><span class=\"k\">.</span>getDom <span class=\"k\">())</span> <span class=\"k\">{</span>","                <span class=\"k\">this</span><span class=\"k\">.</span>getDom <span class=\"k\">().</span>style<span class=\"k\">.</span>display <span class=\"k\">=</span> <span class=\"s\">\"none\"</span><span class=\"k\">;</span>","            <span class=\"k\">}</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>isHidden <span class=\"k\">=</span> <span class=\"k\">true</span><span class=\"k\">;</span>","        <span class=\"k\">}</span> <span class=\"k\">,</span>","        postRender <span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","            <span class=\"k\">if</span> <span class=\"k\">(</span>utils<span class=\"k\">.</span>isArray <span class=\"k\">(</span><span class=\"k\">this</span><span class=\"k\">.</span>items<span class=\"k\">))</span> <span class=\"k\">{</span>","                <span class=\"k\">for</span> <span class=\"k\">(</span><span class=\"k\">var</span> i <span class=\"k\">=</span> <span class=\"s\">0</span><span class=\"k\">,</span> item <span class=\"k\">;</span> item <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>items<span class=\"k\">[</span>i<span class=\"k\">++]</span> <span class=\"k\">;)</span> <span class=\"k\">{</span>","                    item<span class=\"k\">.</span>postRender <span class=\"k\">();</span>","                <span class=\"k\">}</span>","            <span class=\"k\">}</span>","        <span class=\"k\">}</span> <span class=\"k\">,</span>","        getHtmlTpl <span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">()</span> <span class=\"k\">{</span>","            <span class=\"k\">var</span> buff<span class=\"k\">;</span>","            <span class=\"k\">if</span> <span class=\"k\">(</span>utils<span class=\"k\">.</span>isArray <span class=\"k\">(</span><span class=\"k\">this</span><span class=\"k\">.</span>items<span class=\"k\">))</span> <span class=\"k\">{</span>","                buff <span class=\"k\">=</span> <span class=\"k\">[];</span>","                <span class=\"k\">for</span> <span class=\"k\">(</span><span class=\"k\">var</span> i <span class=\"k\">=</span> <span class=\"s\">0</span> <span class=\"k\">;</span> i <span class=\"k\">&lt;</span> <span class=\"k\">this</span><span class=\"k\">.</span>items<span class=\"k\">.</span>length <span class=\"k\">;</span> i<span class=\"k\">++)</span> <span class=\"k\">{</span>","                    buff<span class=\"k\">[</span>i<span class=\"k\">]</span> <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>items<span class=\"k\">[</span>i<span class=\"k\">].</span>renderHtml <span class=\"k\">();</span>","                <span class=\"k\">}</span>","                buff <span class=\"k\">=</span> buff<span class=\"k\">.</span>join <span class=\"k\">(</span><span class=\"s\">\"\"</span><span class=\"k\">);</span>","            <span class=\"k\">}</span> <span class=\"k\">else</span> <span class=\"k\">{</span>","                buff <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>items<span class=\"k\">;</span>","            <span class=\"k\">}</span>","","            <span class=\"k\">return</span> <span class=\"s\">'&lt;div id=\"##\" class=\"%% edui-toolbar\" data-src=\"shortcutmenu\" onmousedown=\"return false;\" onselectstart=\"return false;\" &gt;'</span> <span class=\"k\">+</span>","                buff <span class=\"k\">+</span>","                <span class=\"s\">'&lt;/div&gt;'</span><span class=\"k\">;</span>","        <span class=\"k\">}</span>","    <span class=\"k\">}</span><span class=\"k\">;</span>","","    utils<span class=\"k\">.</span>inherits <span class=\"k\">(</span>ShortCutMenu <span class=\"k\">,</span> UIBase<span class=\"k\">);</span>","","    <span class=\"k\">function</span> hideAllMenu <span class=\"k\">(</span>e<span class=\"k\">)</span> <span class=\"k\">{</span>","        <span class=\"k\">var</span> tgt <span class=\"k\">=</span> e<span class=\"k\">.</span>target <span class=\"k\">||</span> e<span class=\"k\">.</span>srcElement<span class=\"k\">,</span>","            cur <span class=\"k\">=</span> domUtils<span class=\"k\">.</span>findParent <span class=\"k\">(</span>tgt <span class=\"k\">,</span> <span class=\"k\">function</span> <span class=\"k\">(</span>node<span class=\"k\">)</span> <span class=\"k\">{</span>","                <span class=\"k\">return</span> domUtils<span class=\"k\">.</span>hasClass <span class=\"k\">(</span>node <span class=\"k\">,</span> <span class=\"s\">\"edui-shortcutmenu\"</span><span class=\"k\">)</span> <span class=\"k\">||</span> domUtils<span class=\"k\">.</span>hasClass <span class=\"k\">(</span>node <span class=\"k\">,</span> <span class=\"s\">\"edui-popup\"</span><span class=\"k\">);</span>","            <span class=\"k\">}</span> <span class=\"k\">,</span> <span class=\"k\">true</span><span class=\"k\">);</span>","","        <span class=\"k\">if</span> <span class=\"k\">(!</span>cur<span class=\"k\">)</span> <span class=\"k\">{</span>","            <span class=\"k\">for</span> <span class=\"k\">(</span><span class=\"k\">var</span> i <span class=\"k\">=</span> <span class=\"s\">0</span><span class=\"k\">,</span> menu <span class=\"k\">;</span> menu <span class=\"k\">=</span> allMenus<span class=\"k\">[</span>i<span class=\"k\">++]</span> <span class=\"k\">;)</span> <span class=\"k\">{</span>","                menu<span class=\"k\">.</span>hide <span class=\"k\">()</span>","            <span class=\"k\">}</span>","        <span class=\"k\">}</span>","    <span class=\"k\">}</span>","","    domUtils<span class=\"k\">.</span>on <span class=\"k\">(</span>document <span class=\"k\">,</span> <span class=\"s\">'mousedown'</span> <span class=\"k\">,</span> <span class=\"k\">function</span> <span class=\"k\">(</span>e<span class=\"k\">)</span> <span class=\"k\">{</span>","        hideAllMenu <span class=\"k\">(</span>e<span class=\"k\">);</span>","    <span class=\"k\">}</span><span class=\"k\">);</span>","","    domUtils<span class=\"k\">.</span>on <span class=\"k\">(</span>window <span class=\"k\">,</span> <span class=\"s\">'scroll'</span> <span class=\"k\">,</span> <span class=\"k\">function</span> <span class=\"k\">(</span>e<span class=\"k\">)</span> <span class=\"k\">{</span>","        hideAllMenu <span class=\"k\">(</span>e<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['ui/shortcutmenu.js'][1]++;
(function () {
  _$jscoverage['ui/shortcutmenu.js'][2]++;
  var UI = baidu.editor.ui, UIBase = UI.UIBase, uiUtils = UI.uiUtils, utils = baidu.editor.utils, domUtils = baidu.editor.dom.domUtils;
  _$jscoverage['ui/shortcutmenu.js'][8]++;
  var allMenus = [], timeID, isSubMenuShow = false;
  _$jscoverage['ui/shortcutmenu.js'][12]++;
  var ShortCutMenu = (UI.ShortCutMenu = (function (options) {
  _$jscoverage['ui/shortcutmenu.js'][13]++;
  this.initOptions(options);
  _$jscoverage['ui/shortcutmenu.js'][14]++;
  this.initShortCutMenu();
}));
  _$jscoverage['ui/shortcutmenu.js'][17]++;
  ShortCutMenu.postHide = hideAllMenu;
  _$jscoverage['ui/shortcutmenu.js'][19]++;
  ShortCutMenu.prototype = {isHidden: true, SPACE: 5, initShortCutMenu: (function () {
  _$jscoverage['ui/shortcutmenu.js'][23]++;
  this.items = (this.items || []);
  _$jscoverage['ui/shortcutmenu.js'][24]++;
  this.initUIBase();
  _$jscoverage['ui/shortcutmenu.js'][25]++;
  this.initItems();
  _$jscoverage['ui/shortcutmenu.js'][26]++;
  this.initEvent();
  _$jscoverage['ui/shortcutmenu.js'][27]++;
  allMenus.push(this);
}), initEvent: (function () {
  _$jscoverage['ui/shortcutmenu.js'][30]++;
  var me = this, doc = me.editor.document;
  _$jscoverage['ui/shortcutmenu.js'][33]++;
  domUtils.on(doc, "mousemove", (function (e) {
  _$jscoverage['ui/shortcutmenu.js'][34]++;
  if ((me.isHidden === false)) {
    _$jscoverage['ui/shortcutmenu.js'][36]++;
    if ((me.getSubMenuMark() || (me.eventType == "contextmenu"))) {
      _$jscoverage['ui/shortcutmenu.js'][36]++;
      return;
    }
    _$jscoverage['ui/shortcutmenu.js'][39]++;
    var flag = true, el = me.getDom(), wt = el.offsetWidth, ht = el.offsetHeight, distanceX = ((wt / 2) + me.SPACE), distanceY = (ht / 2), x = Math.abs((e.screenX - me.left)), y = Math.abs((e.screenY - me.top));
    _$jscoverage['ui/shortcutmenu.js'][48]++;
    clearTimeout(timeID);
    _$jscoverage['ui/shortcutmenu.js'][49]++;
    timeID = setTimeout((function () {
  _$jscoverage['ui/shortcutmenu.js'][50]++;
  if (((y > 0) && (y < distanceY))) {
    _$jscoverage['ui/shortcutmenu.js'][51]++;
    me.setOpacity(el, "1");
  }
  else {
    _$jscoverage['ui/shortcutmenu.js'][52]++;
    if (((y > distanceY) && (y < (distanceY + 70)))) {
      _$jscoverage['ui/shortcutmenu.js'][53]++;
      me.setOpacity(el, "0.5");
      _$jscoverage['ui/shortcutmenu.js'][54]++;
      flag = false;
    }
    else {
      _$jscoverage['ui/shortcutmenu.js'][55]++;
      if (((y > (distanceY + 70)) && (y < (distanceY + 140)))) {
        _$jscoverage['ui/shortcutmenu.js'][56]++;
        me.hide();
      }
    }
  }
  _$jscoverage['ui/shortcutmenu.js'][59]++;
  if ((flag && (x > 0) && (x < distanceX))) {
    _$jscoverage['ui/shortcutmenu.js'][60]++;
    me.setOpacity(el, "1");
  }
  else {
    _$jscoverage['ui/shortcutmenu.js'][61]++;
    if (((x > distanceX) && (x < (distanceX + 70)))) {
      _$jscoverage['ui/shortcutmenu.js'][62]++;
      me.setOpacity(el, "0.5");
    }
    else {
      _$jscoverage['ui/shortcutmenu.js'][63]++;
      if (((x > (distanceX + 70)) && (x < (distanceX + 140)))) {
        _$jscoverage['ui/shortcutmenu.js'][64]++;
        me.hide();
      }
    }
  }
}));
  }
}));
  _$jscoverage['ui/shortcutmenu.js'][71]++;
  if (browser.chrome) {
    _$jscoverage['ui/shortcutmenu.js'][72]++;
    domUtils.on(doc, "mouseout", (function (e) {
  _$jscoverage['ui/shortcutmenu.js'][73]++;
  var relatedTgt = (e.relatedTarget || e.toElement);
  _$jscoverage['ui/shortcutmenu.js'][75]++;
  if (((relatedTgt == null) || (relatedTgt.tagName == "HTML"))) {
    _$jscoverage['ui/shortcutmenu.js'][76]++;
    me.hide();
  }
}));
  }
  _$jscoverage['ui/shortcutmenu.js'][81]++;
  me.editor.addListener("afterhidepop", (function () {
  _$jscoverage['ui/shortcutmenu.js'][82]++;
  if ((! me.isHidden)) {
    _$jscoverage['ui/shortcutmenu.js'][83]++;
    isSubMenuShow = true;
  }
}));
}), initItems: (function () {
  _$jscoverage['ui/shortcutmenu.js'][89]++;
  if (utils.isArray(this.items)) {
    _$jscoverage['ui/shortcutmenu.js'][90]++;
    for (var i = 0, len = this.items.length; (i < len); (i++)) {
      _$jscoverage['ui/shortcutmenu.js'][91]++;
      var item = this.items[i].toLowerCase();
      _$jscoverage['ui/shortcutmenu.js'][93]++;
      if (UI[item]) {
        _$jscoverage['ui/shortcutmenu.js'][94]++;
        this.items[i] = new (UI[item])(this.editor);
        _$jscoverage['ui/shortcutmenu.js'][95]++;
        this.items[i].className += " edui-shortcutsubmenu ";
      }
}
  }
}), setOpacity: (function (el, value) {
  _$jscoverage['ui/shortcutmenu.js'][101]++;
  if ((browser.ie && (browser.version < 9))) {
    _$jscoverage['ui/shortcutmenu.js'][102]++;
    el.style.filter = ("alpha(opacity = " + (parseFloat(value) * 100) + ");");
  }
  else {
    _$jscoverage['ui/shortcutmenu.js'][104]++;
    el.style.opacity = value;
  }
}), getSubMenuMark: (function () {
  _$jscoverage['ui/shortcutmenu.js'][108]++;
  isSubMenuShow = false;
  _$jscoverage['ui/shortcutmenu.js'][109]++;
  var layerEle = uiUtils.getFixedLayer();
  _$jscoverage['ui/shortcutmenu.js'][110]++;
  var list = domUtils.getElementsByTagName(layerEle, "div", (function (node) {
  _$jscoverage['ui/shortcutmenu.js'][111]++;
  return domUtils.hasClass(node, "edui-shortcutsubmenu edui-popup");
}));
  _$jscoverage['ui/shortcutmenu.js'][114]++;
  for (var i = 0, node; (node = list[(i++)]);) {
    _$jscoverage['ui/shortcutmenu.js'][115]++;
    if ((node.style.display != "none")) {
      _$jscoverage['ui/shortcutmenu.js'][116]++;
      isSubMenuShow = true;
    }
}
  _$jscoverage['ui/shortcutmenu.js'][119]++;
  return isSubMenuShow;
}), show: (function (e, hasContextmenu) {
  _$jscoverage['ui/shortcutmenu.js'][122]++;
  var me = this, offset = {}, el = this.getDom(), fixedlayer = uiUtils.getFixedLayer();
  _$jscoverage['ui/shortcutmenu.js'][127]++;
  function setPos(offset) {
    _$jscoverage['ui/shortcutmenu.js'][128]++;
    if ((offset.left < 0)) {
      _$jscoverage['ui/shortcutmenu.js'][129]++;
      offset.left = 0;
    }
    _$jscoverage['ui/shortcutmenu.js'][131]++;
    if ((offset.top < 0)) {
      _$jscoverage['ui/shortcutmenu.js'][132]++;
      offset.top = 0;
    }
    _$jscoverage['ui/shortcutmenu.js'][134]++;
    el.style.cssText = ("position:absolute;left:" + offset.left + "px;top:" + offset.top + "px;");
}
  _$jscoverage['ui/shortcutmenu.js'][137]++;
  function setPosByCxtMenu(menu) {
    _$jscoverage['ui/shortcutmenu.js'][138]++;
    if ((! menu.tagName)) {
      _$jscoverage['ui/shortcutmenu.js'][139]++;
      menu = menu.getDom();
    }
    _$jscoverage['ui/shortcutmenu.js'][141]++;
    offset.left = parseInt(menu.style.left);
    _$jscoverage['ui/shortcutmenu.js'][142]++;
    offset.top = parseInt(menu.style.top);
    _$jscoverage['ui/shortcutmenu.js'][143]++;
    offset.top -= (el.offsetHeight + 15);
    _$jscoverage['ui/shortcutmenu.js'][144]++;
    setPos(offset);
}
  _$jscoverage['ui/shortcutmenu.js'][148]++;
  me.eventType = e.type;
  _$jscoverage['ui/shortcutmenu.js'][149]++;
  el.style.cssText = "display:block;left:-9999px";
  _$jscoverage['ui/shortcutmenu.js'][151]++;
  if (((e.type == "contextmenu") && hasContextmenu)) {
    _$jscoverage['ui/shortcutmenu.js'][152]++;
    var menu = domUtils.getElementsByTagName(fixedlayer, "div", "edui-contextmenu")[0];
    _$jscoverage['ui/shortcutmenu.js'][153]++;
    if (menu) {
      _$jscoverage['ui/shortcutmenu.js'][154]++;
      setPosByCxtMenu(menu);
    }
    else {
      _$jscoverage['ui/shortcutmenu.js'][156]++;
      me.editor.addListener("aftershowcontextmenu", (function (type, menu) {
  _$jscoverage['ui/shortcutmenu.js'][157]++;
  setPosByCxtMenu(menu);
}));
    }
  }
  else {
    _$jscoverage['ui/shortcutmenu.js'][161]++;
    offset = uiUtils.getViewportOffsetByEvent(e);
    _$jscoverage['ui/shortcutmenu.js'][162]++;
    offset.top -= (el.offsetHeight + me.SPACE);
    _$jscoverage['ui/shortcutmenu.js'][163]++;
    offset.left += (me.SPACE + 20);
    _$jscoverage['ui/shortcutmenu.js'][164]++;
    setPos(offset);
    _$jscoverage['ui/shortcutmenu.js'][165]++;
    me.setOpacity(el, 0.20000000000000001);
  }
  _$jscoverage['ui/shortcutmenu.js'][169]++;
  me.isHidden = false;
  _$jscoverage['ui/shortcutmenu.js'][170]++;
  me.left = ((e.screenX + (el.offsetWidth / 2)) - me.SPACE);
  _$jscoverage['ui/shortcutmenu.js'][171]++;
  me.top = (e.screenY - (el.offsetHeight / 2) - me.SPACE);
  _$jscoverage['ui/shortcutmenu.js'][173]++;
  if (me.editor) {
    _$jscoverage['ui/shortcutmenu.js'][174]++;
    el.style.zIndex = ((me.editor.container.style.zIndex * 1) + 10);
    _$jscoverage['ui/shortcutmenu.js'][175]++;
    fixedlayer.style.zIndex = (el.style.zIndex - 1);
  }
}), hide: (function () {
  _$jscoverage['ui/shortcutmenu.js'][179]++;
  if (this.getDom()) {
    _$jscoverage['ui/shortcutmenu.js'][180]++;
    this.getDom().style.display = "none";
  }
  _$jscoverage['ui/shortcutmenu.js'][182]++;
  this.isHidden = true;
}), postRender: (function () {
  _$jscoverage['ui/shortcutmenu.js'][185]++;
  if (utils.isArray(this.items)) {
    _$jscoverage['ui/shortcutmenu.js'][186]++;
    for (var i = 0, item; (item = this.items[(i++)]);) {
      _$jscoverage['ui/shortcutmenu.js'][187]++;
      item.postRender();
}
  }
}), getHtmlTpl: (function () {
  _$jscoverage['ui/shortcutmenu.js'][192]++;
  var buff;
  _$jscoverage['ui/shortcutmenu.js'][193]++;
  if (utils.isArray(this.items)) {
    _$jscoverage['ui/shortcutmenu.js'][194]++;
    buff = [];
    _$jscoverage['ui/shortcutmenu.js'][195]++;
    for (var i = 0; (i < this.items.length); (i++)) {
      _$jscoverage['ui/shortcutmenu.js'][196]++;
      buff[i] = this.items[i].renderHtml();
}
    _$jscoverage['ui/shortcutmenu.js'][198]++;
    buff = buff.join("");
  }
  else {
    _$jscoverage['ui/shortcutmenu.js'][200]++;
    buff = this.items;
  }
  _$jscoverage['ui/shortcutmenu.js'][203]++;
  return ("<div id=\"##\" class=\"%% edui-toolbar\" data-src=\"shortcutmenu\" onmousedown=\"return false;\" onselectstart=\"return false;\" >" + buff + "</div>");
})};
  _$jscoverage['ui/shortcutmenu.js'][209]++;
  utils.inherits(ShortCutMenu, UIBase);
  _$jscoverage['ui/shortcutmenu.js'][211]++;
  function hideAllMenu(e) {
    _$jscoverage['ui/shortcutmenu.js'][212]++;
    var tgt = (e.target || e.srcElement), cur = domUtils.findParent(tgt, (function (node) {
  _$jscoverage['ui/shortcutmenu.js'][214]++;
  return (domUtils.hasClass(node, "edui-shortcutmenu") || domUtils.hasClass(node, "edui-popup"));
}), true);
    _$jscoverage['ui/shortcutmenu.js'][217]++;
    if ((! cur)) {
      _$jscoverage['ui/shortcutmenu.js'][218]++;
      for (var i = 0, menu; (menu = allMenus[(i++)]);) {
        _$jscoverage['ui/shortcutmenu.js'][219]++;
        menu.hide();
}
    }
}
  _$jscoverage['ui/shortcutmenu.js'][224]++;
  domUtils.on(document, "mousedown", (function (e) {
  _$jscoverage['ui/shortcutmenu.js'][225]++;
  hideAllMenu(e);
}));
  _$jscoverage['ui/shortcutmenu.js'][228]++;
  domUtils.on(window, "scroll", (function (e) {
  _$jscoverage['ui/shortcutmenu.js'][229]++;
  hideAllMenu(e);
}));
})();
