WCF.DOMNodeInsertedHandler.execute();
- enquire.register('(max-width: 767px)', {
- match: $.proxy(this._enableMobileView, this),
- unmatch: $.proxy(this._disableMobileView, this)
- });
+ require(['Ui/Screen'], function(UiScreen) {
+ UiScreen.on('screen-sm-down', {
+ match: $.proxy(this._enableMobileView, this),
+ unmatch: $.proxy(this._disableMobileView, this)
+ });
+ }.bind(this));
return true;
},
// fix maps in mobile sidebars by refreshing the map when displaying
// the map
if (this._mapContainer.parents('.sidebar').length) {
- enquire.register('(max-width: 767px)', {
- setup: $.proxy(this._addSidebarMapListener, this),
- deferSetup: true
- });
+ require(['Ui/Screen'], function(UiScreen) {
+ UiScreen.on('screen-sm-down', {
+ setup: $.proxy(this._addSidebarMapListener, this)
+ });
+ }.bind(this));
}
this.refresh();
*/
define(
[
- 'enquire', 'Ajax', 'Core', 'Dictionary',
+ 'Ajax', 'Core', 'Dictionary',
'Environment', 'Language', 'ObjectMap', 'Dom/ChangeListener',
'Dom/Traverse', 'Dom/Util', 'Ui/Confirmation', 'Ui/Screen', 'Ui/SimpleDropdown',
'EventHandler', 'List', 'EventKey'
],
function(
- enquire, Ajax, Core, Dictionary,
+ Ajax, Core, Dictionary,
Environment, Language, ObjectMap, DomChangeListener,
DomTraverse, DomUtil, UiConfirmation, UiScreen, UiSimpleDropdown,
EventHandler, List, EventKey