diff --git a/ui (gen4)/features/ui-widgets.js b/ui (gen4)/features/ui-widgets.js index 29e5351d..ecfeab34 100755 --- a/ui (gen4)/features/ui-widgets.js +++ b/ui (gen4)/features/ui-widgets.js @@ -515,7 +515,8 @@ module.makeUIDialog = function(a, b){ var makeDrawer = function(direction){ return makeUIContainer(function(dialog, options){ var that = this - var parent = (options || {}).parentElement + options = options || {} + var parent = options.parentElement parent = parent ? $(parent) : this.ribbons.viewer options.direction = direction || 'bottom'