2021-07-13 18:14:13 +00:00
/ * *
* DO NOT EDIT THIS FILE .
* See the following change record for more information ,
* https : //www.drupal.org/node/2815083
* @ preserve
* * /
( function ( $ , once ) {
2021-10-29 10:32:32 +00:00
var deprecatedMessageSuffix = "is deprecated in Drupal 9.3.0 and will be removed in Drupal 10.0.0. Use the core/once library instead. See https://www.drupal.org/node/3158256" ;
var originalJQOnce = $ . fn . once ;
var originalJQRemoveOnce = $ . fn . removeOnce ;
$ . fn . once = function jQueryOnce ( id ) {
Drupal . deprecationError ( {
message : "jQuery.once() " . concat ( deprecatedMessageSuffix )
} ) ;
return originalJQOnce . apply ( this , [ id ] ) ;
} ;
$ . fn . removeOnce = function jQueryRemoveOnce ( id ) {
Drupal . deprecationError ( {
message : "jQuery.removeOnce() " . concat ( deprecatedMessageSuffix )
} ) ;
return originalJQRemoveOnce . apply ( this , [ id ] ) ;
} ;
2021-07-13 18:14:13 +00:00
var drupalOnce = once ;
function augmentedOnce ( id , selector , context ) {
2021-10-29 10:32:32 +00:00
originalJQOnce . apply ( $ ( selector , context ) , [ id ] ) ;
2021-07-13 18:14:13 +00:00
return drupalOnce ( id , selector , context ) ;
}
function remove ( id , selector , context ) {
2021-10-29 10:32:32 +00:00
originalJQRemoveOnce . apply ( $ ( selector , context ) , [ id ] ) ;
2021-07-13 18:14:13 +00:00
return drupalOnce . remove ( id , selector , context ) ;
}
window . once = Object . assign ( augmentedOnce , drupalOnce , {
remove : remove
} ) ;
} ) ( jQuery , once ) ;