Mercurial > pub > ImplabJs
diff src/djol/PopupContainer.js @ 34:27e8e9e38e07 default tip
Слияние
author | nickolay |
---|---|
date | Wed, 05 Jun 2019 20:44:15 +0300 |
parents | 8af8e840dd49 1dc2fd263b90 |
children |
line wrap: on
line diff
--- a/src/djol/PopupContainer.js Wed Jun 05 17:44:17 2019 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,60 +0,0 @@ -define([ - "dijit/_WidgetBase", - "dijit/_TemplatedMixin", - "dijit/_WidgetsInTemplateMixin", - "dijit/_Container", - "dojo/_base/declare", - "dojo/Evented", - "dojo/dom-class", - "dojo/on", - "dojo/text!./resources/PopupContainerTemplate.html", - "ol" -], - function (_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin, _Container, declare, Evented, domClass, on, templateString, ol) { - return declare([_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin, _Container/*, Evented*/], { - - templateString: templateString, - - overlay: null, - - map : null, - - constructor: function (options) { - options = options || {}; - }, - - postCreate: function () { - var me = this; - this.inherited(arguments); - on(this.popupCloser, "click", function () { - me.destroyRecursive(); - me.onClose(); - }); - }, - - show: function (widget, opts) { - opts = opts || "only"; - if (widget) { - widget.placeAt(this.popupContent, opts); - } - }, - - hideOverlay: function () { - domClass.add(this.popupOverlay, "hidden") - }, - - showOverlay: function () { - domClass.remove(this.popupOverlay, "hidden") - }, - - destroy : function() { - this.map.removeOverlay(this.overlay); - this.inherited(arguments); - }, - - onClose: function () { - this.emit("close"); - } - - }); - }); \ No newline at end of file