Skip to content

Commit

Permalink
With the select widget, the default value is '', so we need to jump t…
Browse files Browse the repository at this point in the history
…hrough a hoop to get back to the old behavior for all namespaces in the visual samplers viewer widget.
  • Loading branch information
UIZE committed Apr 21, 2015
1 parent 263fdb6 commit 6341f1d
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Uize.module ({
insertionMode:'inner bottom'
};
Uize.Flo.forEach (
function (_next) {_next (m._visualSamplerModulesByNamespace [_value])},
function (_next) {_next (m._visualSamplerModulesByNamespace [_value == '*' ? '' : _value])},
function (_next) {
Uize.require (
_next.flo.value,
Expand Down Expand Up @@ -83,7 +83,10 @@ Uize.module ({
_visualSamplerDirectNamespaces = Uize.Data.Matches.values (
_modules,
function (_moduleName) {
return _modulesLookup [_moduleName + '.Widget'] && _modulesLookup [_moduleName + '.VisualSampler'];
return (
_modulesLookup [_moduleName + '.Widget'] &&
_modulesLookup [_moduleName + '.VisualSampler']
);
}
),
_visualSamplerNamespaces = _visualSamplerDirectNamespaces.concat ()
Expand Down Expand Up @@ -152,7 +155,7 @@ Uize.module ({
return {
displayName:(_namespace || _loc_allNamespaces || '') +
' (' + _visualSamplerModulesByNamespace [_namespace].length + ')',
name:_namespace
name:_namespace || '*'
};
}
)
Expand Down

0 comments on commit 6341f1d

Please sign in to comment.