Loading core/modules/contextual/js/contextual.es6.js +24 −5 Original line number Diff line number Diff line Loading @@ -132,11 +132,19 @@ contextual.collection.add(model); // Let other JavaScript react to the adding of a new contextual link. $(document).trigger('drupalContextualLinkAdded', { $(document).trigger( 'drupalContextualLinkAdded', Drupal.deprecatedProperty({ target: { $el: $contextual, $region, model, }); }, deprecatedProperty: 'model', message: 'The model property is deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. There is no replacement.', }), ); // Fix visual collisions between contextual link triggers. adjustIfNestedAndOverlapping($contextual); Loading Loading @@ -240,6 +248,8 @@ * Namespace for contextual related functionality. * * @namespace * * @private */ Drupal.contextual = { /** Loading @@ -247,6 +257,9 @@ * element of contextual links. * * @type {Array} * * @deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. There is no * replacement. */ views: [], Loading @@ -255,6 +268,9 @@ * contextual region element. * * @type {Array} * * @deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. There is no * replacement. */ regionViews: [], }; Loading @@ -263,6 +279,9 @@ * A Backbone.Collection of {@link Drupal.contextual.StateModel} instances. * * @type {Backbone.Collection} * * @deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. There is no * replacement. */ Drupal.contextual.collection = new Backbone.Collection([], { model: Drupal.contextual.StateModel, Loading core/modules/contextual/js/contextual.js +9 −5 Original line number Diff line number Diff line Loading @@ -84,11 +84,15 @@ model }, options))); contextual.collection.add(model); $(document).trigger('drupalContextualLinkAdded', { $(document).trigger('drupalContextualLinkAdded', Drupal.deprecatedProperty({ target: { $el: $contextual, $region, model }); }, deprecatedProperty: 'model', message: 'The model property is deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. There is no replacement.' })); adjustIfNestedAndOverlapping($contextual); } Loading core/modules/contextual/js/contextual.toolbar.es6.js +5 −0 Original line number Diff line number Diff line Loading @@ -69,12 +69,17 @@ * Namespace for the contextual toolbar. * * @namespace * * @private */ Drupal.contextualToolbar = { /** * The {@link Drupal.contextualToolbar.StateModel} instance. * * @type {?Drupal.contextualToolbar.StateModel} * * @deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. There is * no replacement. */ model: null, }; Loading core/modules/contextual/js/models/StateModel.es6.js +3 −0 Original line number Diff line number Diff line Loading @@ -10,6 +10,9 @@ * @constructor * * @augments Backbone.Model * * @deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. There is no * replacement. */ Drupal.contextual.StateModel = Backbone.Model.extend( /** @lends Drupal.contextual.StateModel# */ { Loading core/modules/contextual/js/toolbar/models/StateModel.es6.js +4 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,10 @@ */ (function (Drupal, Backbone) { /** * @deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. There is no * replacement. */ Drupal.contextualToolbar.StateModel = Backbone.Model.extend( /** @lends Drupal.contextualToolbar.StateModel# */ { /** Loading Loading
core/modules/contextual/js/contextual.es6.js +24 −5 Original line number Diff line number Diff line Loading @@ -132,11 +132,19 @@ contextual.collection.add(model); // Let other JavaScript react to the adding of a new contextual link. $(document).trigger('drupalContextualLinkAdded', { $(document).trigger( 'drupalContextualLinkAdded', Drupal.deprecatedProperty({ target: { $el: $contextual, $region, model, }); }, deprecatedProperty: 'model', message: 'The model property is deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. There is no replacement.', }), ); // Fix visual collisions between contextual link triggers. adjustIfNestedAndOverlapping($contextual); Loading Loading @@ -240,6 +248,8 @@ * Namespace for contextual related functionality. * * @namespace * * @private */ Drupal.contextual = { /** Loading @@ -247,6 +257,9 @@ * element of contextual links. * * @type {Array} * * @deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. There is no * replacement. */ views: [], Loading @@ -255,6 +268,9 @@ * contextual region element. * * @type {Array} * * @deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. There is no * replacement. */ regionViews: [], }; Loading @@ -263,6 +279,9 @@ * A Backbone.Collection of {@link Drupal.contextual.StateModel} instances. * * @type {Backbone.Collection} * * @deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. There is no * replacement. */ Drupal.contextual.collection = new Backbone.Collection([], { model: Drupal.contextual.StateModel, Loading
core/modules/contextual/js/contextual.js +9 −5 Original line number Diff line number Diff line Loading @@ -84,11 +84,15 @@ model }, options))); contextual.collection.add(model); $(document).trigger('drupalContextualLinkAdded', { $(document).trigger('drupalContextualLinkAdded', Drupal.deprecatedProperty({ target: { $el: $contextual, $region, model }); }, deprecatedProperty: 'model', message: 'The model property is deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. There is no replacement.' })); adjustIfNestedAndOverlapping($contextual); } Loading
core/modules/contextual/js/contextual.toolbar.es6.js +5 −0 Original line number Diff line number Diff line Loading @@ -69,12 +69,17 @@ * Namespace for the contextual toolbar. * * @namespace * * @private */ Drupal.contextualToolbar = { /** * The {@link Drupal.contextualToolbar.StateModel} instance. * * @type {?Drupal.contextualToolbar.StateModel} * * @deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. There is * no replacement. */ model: null, }; Loading
core/modules/contextual/js/models/StateModel.es6.js +3 −0 Original line number Diff line number Diff line Loading @@ -10,6 +10,9 @@ * @constructor * * @augments Backbone.Model * * @deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. There is no * replacement. */ Drupal.contextual.StateModel = Backbone.Model.extend( /** @lends Drupal.contextual.StateModel# */ { Loading
core/modules/contextual/js/toolbar/models/StateModel.es6.js +4 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,10 @@ */ (function (Drupal, Backbone) { /** * @deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. There is no * replacement. */ Drupal.contextualToolbar.StateModel = Backbone.Model.extend( /** @lends Drupal.contextualToolbar.StateModel# */ { /** Loading