dispose: function() { if (this.disposed) { return; } mediator.off('checkout-content:updated', this._onContentUpdated, this); mediator.off('checkout-content:before-update', this._onBeforeContentUpdate, this); CheckoutContentView.__super__.dispose.call(this); }
dispose: function() { if (this.disposed) { return; } mediator.off('order:load:related-data', this.loadingStart, this); mediator.off('order:loaded:related-data', this.loadedRelatedData, this); AddressView.__super__.dispose.call(this); }
dispose: function() { if (this.disposed) { return; } mediator.off('entry-point:order:load', this.setItemValue, this); mediator.off('entry-point:order:load:before', this.initializeAttribute, this); OrderLineItemItemComponent.__super__.dispose.call(this); }
dispose: function() { if (this.disposed) { return; } mediator.off('order:form-changes:trigger', this.loadingStart, this); mediator.off('order:form-changes:load', this.loadFormChanges, this); OrderAddressView.__super__.dispose.call(this); }
dispose: function() { if (this.disposed) { return; } mediator.off('pricing:refresh:products-tier-prices', this.setTierPrices, this); mediator.off('pricing:refresh:line-items-matched-prices', this.setMatchedPrices, this); ProductPricesComponent.__super__.dispose.call(this); }
dispose: function() { if (this.disposed) { return; } mediator.off('line-items-subtotals:update', this.updateSubtotals, this); mediator.off('update:account', this.updateSubtotals, this); mediator.off('update:website', this.updateSubtotals, this); mediator.off('update:currency', this.updateSubtotals, this); SubtotalsComponent.__super__.dispose.call(this); }
dispose: function() { if (this.disposed) { return; } mediator.off('checkout:payment:validate:get-value', this.onGetValue, this); mediator.off('checkout:payment:validate:change', this.onChange, this); mediator.off('checkout:payment:validate:restore-default', this.onRestoreDefault, this); PaymentValidateComponent.__super__.dispose.call(this); }
dispose: function() { if (this.disposed) { return; } mediator.off(this.options.events.init, this.initializeListener, this); mediator.off(this.options.events.trigger, this.callEntryPoint, this); this.listenerOff(); EntryPointComponent.__super__.dispose.call(this); }
dispose: function () { if (this.disposed) { return; } delete this.itemEditDialog; mediator.off('widget:doRefresh:activity-list-widget', this._reload, this ); mediator.off('widget_success:activity_list:item:update', this._reload, this); ActivityListView.__super__.dispose.call(this); },
dispose: function() { if (this.disposed) { return; } this.$el.off('content:changed', _.bind(this._reindexLineItems, this)); this.$el.off('content:remove', _.bind(this._reindexLineItems, this)); this.$el.off('content:remove', _.bind(this._handleRemoveItem, this)); mediator.off('invoice-line-item:created', _.bind(this._setNextSortOrder, this)); mediator.off('update:currency', _.bind(this._setPrototypeCurrency, this)); LineItemsView.__super__.dispose.call(this); }
dispose: function() { if (this.disposed || !this.disposable) { return; } this.$el.off(); mediator.off('checkout:payment:before-restore-filled-form', this.beforeRestoreFilledForm, this); mediator.off('checkout:payment:before-hide-filled-form', this.beforeHideFilledForm, this); mediator.off('checkout:payment:method:get-value', this.onGetValue, this); PaymentMethodSelectorComponent.__super__.dispose.call(this); },
dispose: function() { if (this.disposed) { return; } mediator.off(null, null, this); return ViewportComponent.__super__.dispose.apply(this, arguments); },
dispose: function() { if (this.disposed) { return; } mediator.off('totals:update', this.updateSumAndValidators, this); DiscountItemsView.__super__.dispose.call(this); }
dispose: function() { if (this.disposed) { return; } mediator.off('marello_sales:channel:changed', this.onSalesChannelChange, this); Select2AutocompleteChannelAwareComponent.__super__.dispose.call(this); }
var _buildViews = function(collection, $gridEl) { if (!$gridEl.is('#' + this.$gridEl.attr('id'))) { return; } this.buildViews(grid); mediator.off('datagrid_filters:rendered', _buildViews); };
dispose: function() { if (this.disposed) { return; } mediator.off('pricing:load:line-item-currency', this.loadLineItemCurrency, this); PricingItemsView.__super__.dispose.call(this); }
dispose: function() { if (this.disposed) { return; } mediator.off('order-subtotals:update', this.updateSubtotals, this); SubtotalsComponent.__super__.dispose.call(this); }
dispose: function() { if (this.disposed) { return; } mediator.off('order:refresh:line-items', this.setOrderItemData, this); OrderItemView.__super__.dispose.call(this); }
dispose: function() { if (this.disposed) { return; } mediator.off('scrollable-table:reload'); $(window).off('resize', this.alignCell()); ScrollableTableView.__super__.dispose.call(this); }
dispose: function() { if (this.disposed) { return; } mediator.off('account-account-user:change', this.loadRelatedData, this); RelatedDataComponent.__super__.dispose.call(this); }
remove: function() { mediator.off('overlay:focus', onOverlayFocus); $overlayContent.removeClass('overlay-focused'); $overlayContent.off('click.overlay-tool'); clearInterval(interval); if (backdropId) { backdropManager.release(backdropId); } overlayTool.removeOverlay($overlayContent); },
dispose: function() { if (this.disposed) { return; } mediator.off('grid-sidebar:change:' + this.options.sidebarAlias); delete this.gridCollection; GridSidebarComponent.__super__.dispose.call(this); }
.on('hide.bs.dropdown', '.dropdown.open, .dropup.open', function(e) { if (e.namespace !== 'bs.dropdown') { // handle only events triggered with proper NS (omit just any hide events) return; } var $toggle = $(toggleDropdown, this); var $dropdownMenu = $('>.dropdown-menu__placeholder', this).data('related-menu'); if ($dropdownMenu && $dropdownMenu.length) { makeEmbedded($toggle, $dropdownMenu); mediator.off('layout:adjustHeight', null, this); $dropdownMenu.parents().add(window).off('.floating-dropdown'); } });
dispose: function() { if (this.disposed) { return; } mediator .off('shopping-list:created', this.renderWidget, this) .off('shopping-list:updated', this.renderWidget, this) .off('frontend:item:delete', this.renderWidget, this); this.options._sourceElement.off(); CreateButtonComponent.__super__.dispose.call(this); }
dispose: function() { var groups = this.getAllGroups(); if (groups.length === 2) { // Disable remove button for the last group this.hideRemoveButton(groups); } mediator.off('attribute-select:find-selected-attributes', this.onGetSelectedAttributes, this); mediator.trigger('attribute-group:remove', { attributeSelectFtid: this.getAttributeSelect().data('ftid'), firstGroup: groups.not(this.options._sourceElement).first() }); AttributeGroupComponent.__super__.dispose.call(this); }
initialize: function(options) { var self = this; this.options = _.extend({}, this.options, options); mediator.off('dashboard:widget:add', this.addToDashboard, this); mediator.on('dashboard:widget:add', this.addToDashboard, this); this.widgets = {};// reset widgets state before add _.each(this.options.widgetIds, function(wid) { widgetManager.getWidgetInstance( wid, function(widget) { self.add(widget); } ); }); this._updateEmptyTextVisibility(); if (this.options.allowEdit) { $(this.options.columnsSelector) .sortable({ handle: this.options.handle, placeholder: this.options.placeholder, connectWith: this.options.columnsSelector, start: function() { self._lockLayoutHeight(); self._hideEmptyText(); }, stop: function(event, ui) { self._releaseLayoutHeight(); self.saveLayoutPosition(); self._updateEmptyTextVisibility(); } }); } $('.dashboard-container-wrapper .title-buttons-container .remove-button').on('removesuccess', function() { dashboardUtil.onDashboardRemove($(this).attr('data-id')); }); $('.dashboard-widgets-add').on('click', _.bind(this._onClickAddWidget, this)); DashboardContainerView.__super__.initialize.apply(this, arguments); // prevents caching dashboard page, to keep it actual contentManager.cacheIgnore(); },
var unsubscribe = function() { mediator.off('page:request', unsubscribe); sync.unsubscribe(config.topic); };
var changed = function() { promise.resolve(); field.off('value:changed', changed); mediator.off(promiseEvent, setPromise); };
dispose: function(e) { mediator.off('attribute-select:selected', this.onAttributeSelect, this); mediator.off('attribute-group:remove', this.onGroupRemove, this); AttributeSelectComponent.__super__.dispose.call(this); }
submitHandler: function() { if (this.options.pageReload) { mediator.off('config-form:init', this.onInitAfterSubmit) .once('config-form:init', this.onInitAfterSubmit); } },