Index: Dev/trunk/src/client/qed-client/css/qed.css
===================================================================
--- Dev/trunk/src/client/qed-client/css/qed.css	(revision 468)
+++ Dev/trunk/src/client/qed-client/css/qed.css	(revision 472)
@@ -1,2 +1,3 @@
+/* This CSS file is generated. All edits will be lost on recompile. */
 @import "dijit/claro.css";
 /* line 1, /home/hendrik/gamelab/qed.svn/Dev/trunk/src/client/qed-client/css/colors.less */
Index: Dev/trunk/src/client/qed-client/index.js
===================================================================
--- Dev/trunk/src/client/qed-client/index.js	(revision 468)
+++ Dev/trunk/src/client/qed-client/index.js	(revision 472)
@@ -1,11 +1,6 @@
 define([
-    "./app/Content",
-    "./app/Page",
     "./app/Router",
     "./routes",
     "./session",
-    "./store",
-    "./store/request",
-    "./ui/LoginDialogWrapper",
     "./ui/MainMenu",
     "dojo/_base/array",
@@ -13,6 +8,5 @@
     "./stddeps",
     "dojo/domReady!"
-], function(Content, Page, Router, routes, session, store,
-            request, LoginDialogWrapper, MainMenu, array, parser) {
+], function(Router, routes, session, MainMenu, array, parser) {
 
     parser.parse();
Index: Dev/trunk/src/client/qed-client/store/CouchStore.js
===================================================================
--- Dev/trunk/src/client/qed-client/store/CouchStore.js	(revision 468)
+++ Dev/trunk/src/client/qed-client/store/CouchStore.js	(revision 472)
@@ -241,5 +241,7 @@
 
             for ( var opt in queryOpts ) {
-                queryOpts[opt] = json.toJson(queryOpts[opt]);
+                if ( queryOpts.hasOwnProperty(opt) ) {
+                    queryOpts[opt] = json.toJson(queryOpts[opt]);
+                }
             }
             
Index: Dev/trunk/src/client/qed-client/widgets/LineWithActionsWidget.js
===================================================================
--- Dev/trunk/src/client/qed-client/widgets/LineWithActionsWidget.js	(revision 468)
+++ Dev/trunk/src/client/qed-client/widgets/LineWithActionsWidget.js	(revision 472)
@@ -34,32 +34,34 @@
             }
             for (var action in this.actions) {
-                var properties;
-                if (this.actions[action].properties.blockButton === true) {
-                    properties = lang.mixin({
-                        baseClass: 'rftBlockButton',
-                        label: "Default",
-                        iconClass: 'rftIcon rftIcon'+this.actions[action].properties.icon,
-                        title: this.actions[action].properties.tooltip,
-                        onClick: lang.hitch(this, function(action, e){
-                            if ( action.callback ) { action.callback(e); }
-                            event.stop(e);
-                            return false;
-                        }, this.actions[action])
-                    }, this.actions[action].properties);
-                    new Button(properties).placeAt(this.buttonsNode);
-                } else {
-                    properties = lang.mixin({
-                        baseClass: 'rftInlineButton',
-                        label: "Default",
-                        showLabel: false,
-                        iconClass: 'rftIcon rftIcon'+this.actions[action].properties.icon,
-                        title: this.actions[action].properties.tooltip,
-                        onClick: lang.hitch(this, function(action, e){
-                            if ( action.callback ) { action.callback(e); }
-                            event.stop(e);
-                            return false;
-                        }, this.actions[action])
-                    }, this.actions[action].properties);
-                    new Button(properties).placeAt(this.buttonsNode);
+                if ( this.actions.hasOwnProperty(action) ) {
+                    var properties;
+                    if (this.actions[action].properties.blockButton === true) {
+                        properties = lang.mixin({
+                            baseClass: 'rftBlockButton',
+                            label: "Default",
+                            iconClass: 'rftIcon rftIcon'+this.actions[action].properties.icon,
+                            title: this.actions[action].properties.tooltip,
+                            onClick: lang.hitch(this, function(action, e){
+                                if ( action.callback ) { action.callback(e); }
+                                event.stop(e);
+                                return false;
+                            }, this.actions[action])
+                        }, this.actions[action].properties);
+                        new Button(properties).placeAt(this.buttonsNode);
+                    } else {
+                        properties = lang.mixin({
+                            baseClass: 'rftInlineButton',
+                            label: "Default",
+                            showLabel: false,
+                            iconClass: 'rftIcon rftIcon'+this.actions[action].properties.icon,
+                            title: this.actions[action].properties.tooltip,
+                            onClick: lang.hitch(this, function(action, e){
+                                if ( action.callback ) { action.callback(e); }
+                                event.stop(e);
+                                return false;
+                            }, this.actions[action])
+                        }, this.actions[action].properties);
+                        new Button(properties).placeAt(this.buttonsNode);
+                    }
                 }
             }
Index: Dev/trunk/src/client/qed-client/widgets/ObjectBox.js
===================================================================
--- Dev/trunk/src/client/qed-client/widgets/ObjectBox.js	(revision 468)
+++ Dev/trunk/src/client/qed-client/widgets/ObjectBox.js	(revision 472)
@@ -41,14 +41,16 @@
             var line3Actions = {};
             for (var action in this.actions) {
-                line3Actions[action] = {
-                    callback: lang.hitch(this, function(callback){
-                        if ( this.value ) { callback(this.value); }
-                    }, this.actions[action]),
-                    properties: {
-                        blockButton: true,
-                        label: action,
-                        icon: action.charAt(0).toUpperCase()+action.slice(1)
-                    }
-                };
+                if ( this.actions.hasOwnProperty(action) ) {
+                    line3Actions[action] = {
+                        callback: lang.hitch(this, function(callback){
+                            if ( this.value ) { callback(this.value); }
+                        }, this.actions[action]),
+                        properties: {
+                            blockButton: true,
+                            label: action,
+                            icon: action.charAt(0).toUpperCase()+action.slice(1)
+                        }
+                    };
+                }
             }
             return line3Actions;
Index: Dev/trunk/src/client/qed-client/widgets/Selector.js
===================================================================
--- Dev/trunk/src/client/qed-client/widgets/Selector.js	(revision 468)
+++ Dev/trunk/src/client/qed-client/widgets/Selector.js	(revision 472)
@@ -57,17 +57,19 @@
             if ( this.selectedActions !== null ) {
                 for (var actionName in this.selectedActions) {
-                    action = this.selectedActions[actionName];
-                    actions[actionName] = {
-                        callback: action.callback &&
-                                lang.hitch(this,this._onSelectedAction,
-                                        action.callback),
-                        properties: {
-                            blockButton: true,
-                            label: action.title || actionName,
-                            icon: action.icon,
-                            tooltip: action.description
-                        }
-
-                    };
+                    if ( this.selectedActions.hasOwnProperty(actionName) ) {
+                        action = this.selectedActions[actionName];
+                        actions[actionName] = {
+                            callback: action.callback &&
+                                    lang.hitch(this,this._onSelectedAction,
+                                            action.callback),
+                            properties: {
+                                blockButton: true,
+                                label: action.title || actionName,
+                                icon: action.icon,
+                                tooltip: action.description
+                            }
+
+                        };
+                    }
                 }
             }
@@ -180,14 +182,16 @@
             if (this.itemActions) {
                 for (var actionName in this.itemActions) {
-                    action = this.itemActions[actionName];
-                    actions[actionName] = {
-                        callback: action.callback && lang.partial(action.callback,item),
-                        properties: {
-                            blockButton: false,
-                            showLabel: false,
-                            icon: action.icon + " black",
-                            tooltip: action.description
-                        }
-                    };
+                    if ( this.itemActions.hasOwnProperty(actionName) ) {
+                        action = this.itemActions[actionName];
+                        actions[actionName] = {
+                            callback: action.callback && lang.partial(action.callback,item),
+                            properties: {
+                                blockButton: false,
+                                showLabel: false,
+                                icon: action.icon + " black",
+                                tooltip: action.description
+                            }
+                        };
+                    }
                 }
             }
Index: Dev/trunk/src/client/qed-client/widgets/_ComplexValueMixin.coffee
===================================================================
--- Dev/trunk/src/client/qed-client/widgets/_ComplexValueMixin.coffee	(revision 468)
+++ Dev/trunk/src/client/qed-client/widgets/_ComplexValueMixin.coffee	(revision 472)
@@ -46,4 +46,4 @@
             # widgets within other forms, the onSubmit must either be
             # ignored or propagated, but not handled here.
-            event.stop if e
+            event.stop e if e
             false
