diff --git a/src/salvattore.js b/src/salvattore.js index 8bc7874..64d5f63 100644 --- a/src/salvattore.js +++ b/src/salvattore.js @@ -368,6 +368,14 @@ self.registerGrid = function registerGrid (grid) { }; +self.unregisterGrid = function unregisterGrid (grid) { + var index = grids.indexOf(grid); + if (index > -1) { + grids.splice(index, 1); + } +}; + + self.init = function init() { // adds required CSS rule to hide 'content' based // configuration. @@ -390,6 +398,7 @@ return { appendElements: self.appendElements, prependElements: self.prependElements, registerGrid: self.registerGrid, + unregisterGrid: self.unregisterGrid, recreateColumns: self.recreateColumns, rescanMediaQueries: self.rescanMediaQueries, init: self.init, @@ -398,6 +407,7 @@ return { append_elements: self.appendElements, prepend_elements: self.prependElements, register_grid: self.registerGrid, + unregister_grid: self.unregisterGrid, recreate_columns: self.recreateColumns, rescan_media_queries: self.rescanMediaQueries };