/* 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/multiMenu.js']) {
  _$jscoverage['ui/multiMenu.js'] = [];
  _$jscoverage['ui/multiMenu.js'][4] = 0;
  _$jscoverage['ui/multiMenu.js'][5] = 0;
  _$jscoverage['ui/multiMenu.js'][9] = 0;
  _$jscoverage['ui/multiMenu.js'][10] = 0;
  _$jscoverage['ui/multiMenu.js'][13] = 0;
  _$jscoverage['ui/multiMenu.js'][15] = 0;
  _$jscoverage['ui/multiMenu.js'][16] = 0;
  _$jscoverage['ui/multiMenu.js'][21] = 0;
  _$jscoverage['ui/multiMenu.js'][22] = 0;
  _$jscoverage['ui/multiMenu.js'][23] = 0;
  _$jscoverage['ui/multiMenu.js'][24] = 0;
  _$jscoverage['ui/multiMenu.js'][30] = 0;
  _$jscoverage['ui/multiMenu.js'][31] = 0;
  _$jscoverage['ui/multiMenu.js'][33] = 0;
  _$jscoverage['ui/multiMenu.js'][38] = 0;
}
_$jscoverage['ui/multiMenu.js'].source = ["<span class=\"c\">///import core</span>","<span class=\"c\">///import uicore</span>"," <span class=\"c\">///commands &#34920;&#24773;</span>","<span class=\"k\">(</span><span class=\"k\">function</span><span class=\"k\">()</span><span class=\"k\">{</span>","    <span class=\"k\">var</span> utils <span class=\"k\">=</span> baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>utils<span class=\"k\">,</span>","        Popup <span class=\"k\">=</span> baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>Popup<span class=\"k\">,</span>","        SplitButton <span class=\"k\">=</span> baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>SplitButton<span class=\"k\">,</span>","        MultiMenuPop <span class=\"k\">=</span> baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>MultiMenuPop <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>initMultiMenu<span class=\"k\">();</span>","        <span class=\"k\">}</span><span class=\"k\">;</span>","","    MultiMenuPop<span class=\"k\">.</span>prototype <span class=\"k\">=</span> <span class=\"k\">{</span>","        initMultiMenu<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>","            <span class=\"k\">this</span><span class=\"k\">.</span>popup <span class=\"k\">=</span> <span class=\"k\">new</span> Popup<span class=\"k\">(</span><span class=\"k\">{</span>","                content<span class=\"k\">:</span> <span class=\"s\">''</span><span class=\"k\">,</span>","                editor <span class=\"k\">:</span> me<span class=\"k\">.</span>editor<span class=\"k\">,</span>","                iframe_rendered<span class=\"k\">:</span> <span class=\"k\">false</span><span class=\"k\">,</span>","                onshow<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>iframe_rendered<span class=\"k\">)</span> <span class=\"k\">{</span>","                        <span class=\"k\">this</span><span class=\"k\">.</span>iframe_rendered <span class=\"k\">=</span> <span class=\"k\">true</span><span class=\"k\">;</span>","                        <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">(</span><span class=\"s\">'content'</span><span class=\"k\">).</span>innerHTML <span class=\"k\">=</span> <span class=\"s\">'&lt;iframe id=\"'</span><span class=\"k\">+</span>me<span class=\"k\">.</span>id<span class=\"k\">+</span><span class=\"s\">'_iframe\" src=\"'</span><span class=\"k\">+</span> me<span class=\"k\">.</span>iframeUrl <span class=\"k\">+</span><span class=\"s\">'\" frameborder=\"0\"&gt;&lt;/iframe&gt;'</span><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\">&amp;&amp;</span> <span class=\"k\">(</span><span class=\"k\">this</span><span class=\"k\">.</span>getDom<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\">1</span><span class=\"k\">);</span>","                    <span class=\"k\">}</span>","                <span class=\"k\">}</span>","               <span class=\"c\">// canSideUp:false,</span>","               <span class=\"c\">// canSideLeft:false</span>","            <span class=\"k\">}</span><span class=\"k\">);</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>onbuttonclick <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>showPopup<span class=\"k\">();</span>","            <span class=\"k\">}</span><span class=\"k\">;</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>initSplitButton<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>MultiMenuPop<span class=\"k\">,</span> SplitButton<span class=\"k\">);</span>","<span class=\"k\">}</span><span class=\"k\">)();</span>"];
_$jscoverage['ui/multiMenu.js'][4]++;
(function () {
  _$jscoverage['ui/multiMenu.js'][5]++;
  var utils = baidu.editor.utils, Popup = baidu.editor.ui.Popup, SplitButton = baidu.editor.ui.SplitButton, MultiMenuPop = (baidu.editor.ui.MultiMenuPop = (function (options) {
  _$jscoverage['ui/multiMenu.js'][9]++;
  this.initOptions(options);
  _$jscoverage['ui/multiMenu.js'][10]++;
  this.initMultiMenu();
}));
  _$jscoverage['ui/multiMenu.js'][13]++;
  MultiMenuPop.prototype = {initMultiMenu: (function () {
  _$jscoverage['ui/multiMenu.js'][15]++;
  var me = this;
  _$jscoverage['ui/multiMenu.js'][16]++;
  this.popup = new Popup({content: "", editor: me.editor, iframe_rendered: false, onshow: (function () {
  _$jscoverage['ui/multiMenu.js'][21]++;
  if ((! this.iframe_rendered)) {
    _$jscoverage['ui/multiMenu.js'][22]++;
    this.iframe_rendered = true;
    _$jscoverage['ui/multiMenu.js'][23]++;
    this.getDom("content").innerHTML = ("<iframe id=\"" + me.id + "_iframe\" src=\"" + me.iframeUrl + "\" frameborder=\"0\"></iframe>");
    _$jscoverage['ui/multiMenu.js'][24]++;
    (me.editor.container.style.zIndex && (this.getDom().style.zIndex = ((me.editor.container.style.zIndex * 1) + 1)));
  }
})});
  _$jscoverage['ui/multiMenu.js'][30]++;
  this.onbuttonclick = (function () {
  _$jscoverage['ui/multiMenu.js'][31]++;
  this.showPopup();
});
  _$jscoverage['ui/multiMenu.js'][33]++;
  this.initSplitButton();
})};
  _$jscoverage['ui/multiMenu.js'][38]++;
  utils.inherits(MultiMenuPop, SplitButton);
})();
