Skip to content

Commit

Permalink
Move radio button creation before triggering transformer:changed
Browse files Browse the repository at this point in the history
  • Loading branch information
richgilbank committed Mar 7, 2015
1 parent a8a2bbd commit 9f73130
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions panel/scripts/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Settings.prototype.onDomReady = function() {
var _this = this;
this.domReady = true;

document.querySelector('.transformer-options').innerHTML = _this.transformerOptionTemplate(this.repl.transformers);

// Check for latest settings
this.get(function(data) {
// If there's no data stored, store the defaults
Expand All @@ -32,8 +34,6 @@ Settings.prototype.onDomReady = function() {
bus.trigger('settings:changed:' + key, data[key]);
}
}

document.querySelector('.transformer-options').innerHTML = _this.transformerOptionTemplate(this.repl.transformers);
});

document.querySelector('.open-settings').addEventListener('click', function() {
Expand Down

0 comments on commit 9f73130

Please sign in to comment.