You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
starts batch updates. You will see no changes until `commit()` method is called.
352
+
use before calling a bunch of `addWidget()` to prevent un-necessary relayouts in between (more efficient) and get a single event callback. You will see no changes until `batchUpdate(false)` is called.
it('warning if OLD commit() is called',function(){
1852
+
letgrid=GridStack.init();
1853
+
grid.batchUpdate(true);
1854
+
expect(grid.engine.batchMode).toBe(true);
1855
+
grid.commit();// old API
1856
+
expect(grid.engine.batchMode).toBe(false);
1857
+
// expect(console.warn).toHaveBeenCalledWith('gridstack.js: Function `setGridWidth` is deprecated in v0.5.3 and has been replaced with `column`. It will be **completely** removed in v1.0');
1858
+
});
1859
+
1851
1860
/* saving as example
1852
1861
it('warning if OLD setGridWidth is called', function() {
0 commit comments