Skip to content

Commit 369a599

Browse files
committed
Add usage for deregister method
1 parent e4b71d6 commit 369a599

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ b. Register a bundle passing in the selector to detect the html elements that re
8181
RequireBundle.register( 'fluid-slider', [ '//domain/js/fluid-slider.min.js', '//domain/css/fluid-slider.min.css' ], '.slider-wrapper', function(){ FluidSlider.init(); } ); // Auto-load when `.slider-wrapper` is present, then execute callback
8282
```
8383

84+
### 4. De-register a bundle
85+
86+
You can remove a bundle from the registered bundles by calling the method `RequireBundle.deregister`:
87+
```js
88+
window.addEventListener( 'load', function(){
89+
RequireBundle.deregister( 'fluid-slider' );
90+
} );
91+
```
8492

8593

8694
## Contributing to Development

0 commit comments

Comments
 (0)