Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
try fix for firefox
  • Loading branch information
jstrachan committed Jul 29, 2013
1 parent 77595fc commit f571c09
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions hawtio-web/src/main/webapp/app/forms/js/mappingRegistry.ts
Expand Up @@ -70,6 +70,9 @@ module Forms {

var scope = config.scope;
if (scope && modelName) {
var onModelChange = function(newValue) {
scope.$emit("hawtio.form.modelChange", modelName, newValue);
};
var fn = onModelChange;
// allow custom converters
var converterFn = options.valueConverter;
Expand All @@ -82,10 +85,6 @@ module Forms {
}
scope.$watch(modelName, fn);
}

function onModelChange(newValue) {
scope.$emit("hawtio.form.modelChange", modelName, newValue);
}
}
} else {
input = $('<div></div>');
Expand Down

0 comments on commit f571c09

Please sign in to comment.