File tree 2 files changed +18
-18
lines changed
base/src/sap/ui/webcomponents/base/shims
playground/webapp/www/samples
2 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 1
1
import { inject as injectJQuery } from "@ui5/webcomponents-core/dist/sap/ui/thirdparty/jquery" ;
2
- import fnIsPlainObject from "@ui5/webcomponents-core/dist/sap/base/util/isPlainObject" ;
2
+ import isPlainObject from "@ui5/webcomponents-core/dist/sap/base/util/isPlainObject" ;
3
3
4
4
var jQuery = {
5
5
extend : function ( ) {
@@ -45,15 +45,15 @@ var jQuery = {
45
45
}
46
46
47
47
// Recurse if we're merging plain objects or arrays
48
- if ( deep && copy && ( fnIsPlainObject ( copy ) ||
48
+ if ( deep && copy && ( isPlainObject ( copy ) ||
49
49
( copyIsArray = Array . isArray ( copy ) ) ) ) {
50
50
51
51
if ( copyIsArray ) {
52
52
copyIsArray = false ;
53
53
clone = src && Array . isArray ( src ) ? src : [ ] ;
54
54
55
55
} else {
56
- clone = src && fnIsPlainObject ( src ) ? src : { } ;
56
+ clone = src && isPlainObject ( src ) ? src : { } ;
57
57
}
58
58
59
59
// Never move original objects, clone them
Original file line number Diff line number Diff line change 1
- ( function ( ) {
2
- var HCB = "sap_belize_hcb" ;
3
- var theme = window [ "sap-ui-webcomponents-main-bundle" ] . Core . getConfiguration ( ) . theme ;
4
- var documentBody = document . body ;
5
- if ( theme === HCB ) {
6
- documentBody . classList . add ( "hcb-background" ) ;
7
- } else {
8
- documentBody . classList . remove ( "hcb-background" ) ;
9
- }
10
-
11
- window . onload = function ( ) {
12
- //Inform parent when loaded to attach handlers for scroll
13
- parent . postMessage ( "Iframe Loaded Successfully" , "*" ) ;
14
- } ;
15
- } ) ( ) ;
1
+ ( function ( ) {
2
+ var HCB = "sap_belize_hcb" ;
3
+ var theme = window [ "sap-ui-webcomponents-main-bundle" ] . configuration . getTheme ( ) ;
4
+ var documentBody = document . body ;
5
+ if ( theme === HCB ) {
6
+ documentBody . classList . add ( "hcb-background" ) ;
7
+ } else {
8
+ documentBody . classList . remove ( "hcb-background" ) ;
9
+ }
10
+
11
+ window . onload = function ( ) {
12
+ //Inform parent when loaded to attach handlers for scroll
13
+ parent . postMessage ( "Iframe Loaded Successfully" , "*" ) ;
14
+ } ;
15
+ } ) ( ) ;
You can’t perform that action at this time.
0 commit comments