diff --git a/dist/base.js b/dist/base.js index 681d77f9a..a8846c235 100644 --- a/dist/base.js +++ b/dist/base.js @@ -420,7 +420,7 @@ BI.Single = BI.inherit(BI.Widget, { clearTimeout(this.timeout); } this._hideTooltip(); - $(this.element).unbind("mouseenter.title" + this.getName()) + this.element.unbind("mouseenter.title" + this.getName()) .unbind("mousemove.title" + this.getName()) .unbind("mouseleave.title" + this.getName()); this._hoverBinded = false; @@ -736,14 +736,14 @@ BI.BasicButton = BI.inherit(BI.Single, { var selected = false; hand.mousedown(function (e) { // if (e.button === 0) { - $(document).bind("mouseup." + self.getName(), function (e) { + BI.Widget._renderEngine.createElement(document).bind("mouseup." + self.getName(), function (e) { // if (e.button === 0) { if (BI.DOM.isExist(self) && !hand.__isMouseInBounds__(e) && mouseDown === true && !selected) { // self.setSelected(!self.isSelected()); self._trigger(); } mouseDown = false; - $(document).unbind("mouseup." + self.getName()); + BI.Widget._renderEngine.createElement(document).unbind("mouseup." + self.getName()); // } }); if (mouseDown === true) { @@ -765,7 +765,7 @@ BI.BasicButton = BI.inherit(BI.Single, { } mouseDown = false; selected = false; - $(document).unbind("mouseup." + self.getName()); + BI.Widget._renderEngine.createElement(document).unbind("mouseup." + self.getName()); // } }); break; @@ -776,11 +776,11 @@ BI.BasicButton = BI.inherit(BI.Single, { var mouseDown = false; var interval; hand.mousedown(function (e) { - $(document).bind("mouseup." + self.getName(), function (e) { + BI.Widget._renderEngine.createElement(document).bind("mouseup." + self.getName(), function (e) { interval && clearInterval(interval); interval = null; mouseDown = false; - $(document).unbind("mouseup." + self.getName()); + BI.Widget._renderEngine.createElement(document).unbind("mouseup." + self.getName()); }); if (mouseDown === true) { return; @@ -1010,7 +1010,7 @@ BI.BasicButton = BI.inherit(BI.Single, { }, empty: function () { - $(document).unbind("mouseup." + this.getName()); + BI.Widget._renderEngine.createElement(document).unbind("mouseup." + this.getName()); BI.BasicButton.superclass.empty.apply(this, arguments); }, @@ -2504,14 +2504,17 @@ BI.PartTree = BI.inherit(BI.AsyncTree, { } }); -BI.shortcut("bi.part_tree", BI.PartTree);BI.Resizers = new BI.ResizeController(); -BI.Layers = new BI.LayerController(); -BI.Maskers = new BI.MaskersController(); -BI.Bubbles = new BI.BubblesController(); -BI.Tooltips = new BI.TooltipsController(); -BI.Popovers = new BI.PopoverController(); -BI.Broadcasts = new BI.BroadcastController(); -BI.StyleLoaders = new BI.StyleLoaderManager();/** +BI.shortcut("bi.part_tree", BI.PartTree);BI.prepares.push(function () { + BI.Resizers = new BI.ResizeController(); + BI.Layers = new BI.LayerController(); + BI.Maskers = new BI.MaskersController(); + BI.Bubbles = new BI.BubblesController(); + BI.Tooltips = new BI.TooltipsController(); + BI.Popovers = new BI.PopoverController(); + BI.Broadcasts = new BI.BroadcastController(); + BI.StyleLoaders = new BI.StyleLoaderManager(); +}); +/** * CollectionView * * Created by GUY on 2016/1/15. @@ -3153,7 +3156,7 @@ BI.Combo = BI.inherit(BI.Widget, { // BI-10290 公式combo双击公式内容会收起 if ((this.element.find(e.target).length > 0 && e.type !== "mousewheel") || (this.popupView && this.popupView.element.find(e.target).length > 0) - || e.target.className === "CodeMirror-cursor" || $(e.target).closest(".CodeMirror-hints").length > 0) {// BI-9887 CodeMirror的公式弹框需要特殊处理下 + || e.target.className === "CodeMirror-cursor" || BI.Widget._renderEngine.createElement(e.target).closest(".CodeMirror-hints").length > 0) {// BI-9887 CodeMirror的公式弹框需要特殊处理下 return; } var isHide = this.options.hideChecker.apply(this, [e]); @@ -3174,7 +3177,7 @@ BI.Combo = BI.inherit(BI.Widget, { } this.element.removeClass(this.options.comboClass); - $(document).unbind("mousedown." + this.getName()).unbind("mousewheel." + this.getName()); + BI.Widget._renderEngine.createElement(document).unbind("mousedown." + this.getName()).unbind("mousewheel." + this.getName()); this.fireEvent(BI.Combo.EVENT_AFTER_HIDEVIEW); }, @@ -3187,8 +3190,8 @@ BI.Combo = BI.inherit(BI.Widget, { this.adjustHeight(); this.element.addClass(this.options.comboClass); - $(document).unbind("mousedown." + this.getName()).unbind("mousewheel." + this.getName()); - $(document).bind("mousedown." + this.getName(), BI.bind(this._hideIf, this)).bind("mousewheel." + this.getName(), BI.bind(this._hideIf, this)); + BI.Widget._renderEngine.createElement(document).unbind("mousedown." + this.getName()).unbind("mousewheel." + this.getName()); + BI.Widget._renderEngine.createElement(document).bind("mousedown." + this.getName(), BI.bind(this._hideIf, this)).bind("mousewheel." + this.getName(), BI.bind(this._hideIf, this)); this.fireEvent(BI.Combo.EVENT_AFTER_POPUPVIEW); }, @@ -3356,7 +3359,7 @@ BI.Combo = BI.inherit(BI.Widget, { }, destroy: function () { - $(document).unbind("mousedown." + this.getName()) + BI.Widget._renderEngine.createElement(document).unbind("mousedown." + this.getName()) .unbind("mousewheel." + this.getName()) .unbind("mouseenter." + this.getName()) .unbind("mousemove." + this.getName()) @@ -5093,7 +5096,7 @@ BI.Msg = function () { }, toast: function (message, options, context) { options = options || {}; - context = context || $("body"); + context = context || BI.Widget._renderEngine.createElement("body"); var level = options.level || "normal"; var autoClose = BI.isNull(options.autoClose) ? true : options.autoClose; var toast = BI.createWidget({ @@ -5123,7 +5126,7 @@ BI.Msg = function () { }, 5000); }, _show: function (hasCancel, title, message, callback) { - $mask = $("