File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 ) ;
You can’t perform that action at this time.
0 commit comments