Skip to content

Commit 735a346

Browse files
committed
merge fixes
1 parent 83130dc commit 735a346

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

spec/gridstack-spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,7 +1172,7 @@ describe('gridstack', function() {
11721172
float: false,
11731173
};
11741174
var grid = GridStack.init(options);
1175-
expect(grid._styles.ownerNode.parentNode.tagName).toBe('DIV');
1175+
expect((grid as any)._styles.ownerNode.parentNode.tagName).toBe('DIV'); // any to access private _styles
11761176
});
11771177
it('should add STYLE to HEAD if styleInHead === true', function() {
11781178
var options = {
@@ -1182,7 +1182,7 @@ describe('gridstack', function() {
11821182
styleInHead: true
11831183
};
11841184
var grid = GridStack.init(options);
1185-
expect(grid._styles.ownerNode.parentNode.tagName).toBe('HEAD');
1185+
expect((grid as any)._styles.ownerNode.parentNode.tagName).toBe('HEAD'); // any to access private _styles
11861186
});
11871187
});
11881188

src/jq/jquery-ui.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
*/
66

77
(function( factory ) {
8+
/* [alain] we compile this in so no need to load with AMD
89
if ( typeof define === "function" && define.amd ) {
910
1011
// AMD. Register as an anonymous module.
1112
define([ "jquery" ], factory );
12-
} else {
13+
} else */{
1314

1415
// Browser globals
1516
factory( jQuery );

0 commit comments

Comments
 (0)