Skip to content

Commit

Permalink
Cusotm controls marked loaded before they are loaded for formRender (#…
Browse files Browse the repository at this point in the history
…853)

* fix(controls): controls marked loaded when not loaded for formRender

* v2.10.3

* remove track control

* update demo files
  • Loading branch information
kevinchappell authored Nov 3, 2018
1 parent 4aa1529 commit 3588537
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Changelog

- v2.10.3 - Bugfix fbControlsLoaded [#853](https://github.com/kevinchappell/formBuilder/pull/853)
- v2.10.2 - Bugfix i18n lookups [#852](https://github.com/kevinchappell/formBuilder/pull/852)
- v2.10.1 - Bugfix typeUserAttrs [#851](https://github.com/kevinchappell/formBuilder/pull/851)
- v2.10.0 - Release 2.10.0 [#842](https://github.com/kevinchappell/formBuilder/pull/842)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
formBuilder v2.10.2
formBuilder v2.10.3
===========

[![Join the chat at https://gitter.im/kevinchappell/formBuilder](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/kevinchappell/formBuilder?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Expand Down
2 changes: 1 addition & 1 deletion demo/assets/js/control_plugins/starRating.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion demo/assets/js/control_plugins/textarea.trumbowyg.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion demo/assets/js/demo.min.js

Large diffs are not rendered by default.

Binary file modified demo/assets/js/demo.min.js.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions demo/assets/js/form-builder.min.js

Large diffs are not rendered by default.

Binary file modified demo/assets/js/form-builder.min.js.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions demo/assets/js/form-render.min.js

Large diffs are not rendered by default.

Binary file modified demo/assets/js/form-render.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "formBuilder",
"version": "2.10.2",
"version": "2.10.3",
"main": "dist/form-builder.min.js",
"files": [
"dist/form-builder.min.js",
Expand Down
4 changes: 2 additions & 2 deletions src/js/control.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,11 @@ export default class control {
// loop through each defined custom control.
// expects a function that receives the master control class to inherit from (or optional classRegister to inherit from subclass)
// see src/js/control_plugins/ for an example
if (!window.fbControlsLoaded) {
if (!this.fbControlsLoaded) {
for (const loadControl of controlClasses) {
loadControl(control, control.classRegister)
}
window.fbControlsLoaded = true
this.fbControlsLoaded = true
}
}

Expand Down

0 comments on commit 3588537

Please sign in to comment.