Ignore:
Timestamp:
07/01/13 03:34:23 (12 years ago)
Author:
hendrikvanantwerpen
Message:

Fixed deploy script.
Fix for ... in ... complaints by jshint.
Fix a typo.

Location:
Dev/trunk/src/client/qed-client
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/src/client/qed-client/css/qed.css

    r452 r472  
     1/* This CSS file is generated. All edits will be lost on recompile. */
    12@import "dijit/claro.css";
    23/* line 1, /home/hendrik/gamelab/qed.svn/Dev/trunk/src/client/qed-client/css/colors.less */
  • Dev/trunk/src/client/qed-client/index.js

    r468 r472  
    11define([
    2     "./app/Content",
    3     "./app/Page",
    42    "./app/Router",
    53    "./routes",
    64    "./session",
    7     "./store",
    8     "./store/request",
    9     "./ui/LoginDialogWrapper",
    105    "./ui/MainMenu",
    116    "dojo/_base/array",
     
    138    "./stddeps",
    149    "dojo/domReady!"
    15 ], function(Content, Page, Router, routes, session, store,
    16             request, LoginDialogWrapper, MainMenu, array, parser) {
     10], function(Router, routes, session, MainMenu, array, parser) {
    1711
    1812    parser.parse();
  • Dev/trunk/src/client/qed-client/store/CouchStore.js

    r468 r472  
    241241
    242242            for ( var opt in queryOpts ) {
    243                 queryOpts[opt] = json.toJson(queryOpts[opt]);
     243                if ( queryOpts.hasOwnProperty(opt) ) {
     244                    queryOpts[opt] = json.toJson(queryOpts[opt]);
     245                }
    244246            }
    245247           
  • Dev/trunk/src/client/qed-client/widgets/LineWithActionsWidget.js

    r443 r472  
    3434            }
    3535            for (var action in this.actions) {
    36                 var properties;
    37                 if (this.actions[action].properties.blockButton === true) {
    38                     properties = lang.mixin({
    39                         baseClass: 'rftBlockButton',
    40                         label: "Default",
    41                         iconClass: 'rftIcon rftIcon'+this.actions[action].properties.icon,
    42                         title: this.actions[action].properties.tooltip,
    43                         onClick: lang.hitch(this, function(action, e){
    44                             if ( action.callback ) { action.callback(e); }
    45                             event.stop(e);
    46                             return false;
    47                         }, this.actions[action])
    48                     }, this.actions[action].properties);
    49                     new Button(properties).placeAt(this.buttonsNode);
    50                 } else {
    51                     properties = lang.mixin({
    52                         baseClass: 'rftInlineButton',
    53                         label: "Default",
    54                         showLabel: false,
    55                         iconClass: 'rftIcon rftIcon'+this.actions[action].properties.icon,
    56                         title: this.actions[action].properties.tooltip,
    57                         onClick: lang.hitch(this, function(action, e){
    58                             if ( action.callback ) { action.callback(e); }
    59                             event.stop(e);
    60                             return false;
    61                         }, this.actions[action])
    62                     }, this.actions[action].properties);
    63                     new Button(properties).placeAt(this.buttonsNode);
     36                if ( this.actions.hasOwnProperty(action) ) {
     37                    var properties;
     38                    if (this.actions[action].properties.blockButton === true) {
     39                        properties = lang.mixin({
     40                            baseClass: 'rftBlockButton',
     41                            label: "Default",
     42                            iconClass: 'rftIcon rftIcon'+this.actions[action].properties.icon,
     43                            title: this.actions[action].properties.tooltip,
     44                            onClick: lang.hitch(this, function(action, e){
     45                                if ( action.callback ) { action.callback(e); }
     46                                event.stop(e);
     47                                return false;
     48                            }, this.actions[action])
     49                        }, this.actions[action].properties);
     50                        new Button(properties).placeAt(this.buttonsNode);
     51                    } else {
     52                        properties = lang.mixin({
     53                            baseClass: 'rftInlineButton',
     54                            label: "Default",
     55                            showLabel: false,
     56                            iconClass: 'rftIcon rftIcon'+this.actions[action].properties.icon,
     57                            title: this.actions[action].properties.tooltip,
     58                            onClick: lang.hitch(this, function(action, e){
     59                                if ( action.callback ) { action.callback(e); }
     60                                event.stop(e);
     61                                return false;
     62                            }, this.actions[action])
     63                        }, this.actions[action].properties);
     64                        new Button(properties).placeAt(this.buttonsNode);
     65                    }
    6466                }
    6567            }
  • Dev/trunk/src/client/qed-client/widgets/ObjectBox.js

    r443 r472  
    4141            var line3Actions = {};
    4242            for (var action in this.actions) {
    43                 line3Actions[action] = {
    44                     callback: lang.hitch(this, function(callback){
    45                         if ( this.value ) { callback(this.value); }
    46                     }, this.actions[action]),
    47                     properties: {
    48                         blockButton: true,
    49                         label: action,
    50                         icon: action.charAt(0).toUpperCase()+action.slice(1)
    51                     }
    52                 };
     43                if ( this.actions.hasOwnProperty(action) ) {
     44                    line3Actions[action] = {
     45                        callback: lang.hitch(this, function(callback){
     46                            if ( this.value ) { callback(this.value); }
     47                        }, this.actions[action]),
     48                        properties: {
     49                            blockButton: true,
     50                            label: action,
     51                            icon: action.charAt(0).toUpperCase()+action.slice(1)
     52                        }
     53                    };
     54                }
    5355            }
    5456            return line3Actions;
  • Dev/trunk/src/client/qed-client/widgets/Selector.js

    r443 r472  
    5757            if ( this.selectedActions !== null ) {
    5858                for (var actionName in this.selectedActions) {
    59                     action = this.selectedActions[actionName];
    60                     actions[actionName] = {
    61                         callback: action.callback &&
    62                                 lang.hitch(this,this._onSelectedAction,
    63                                         action.callback),
    64                         properties: {
    65                             blockButton: true,
    66                             label: action.title || actionName,
    67                             icon: action.icon,
    68                             tooltip: action.description
    69                         }
    70 
    71                     };
     59                    if ( this.selectedActions.hasOwnProperty(actionName) ) {
     60                        action = this.selectedActions[actionName];
     61                        actions[actionName] = {
     62                            callback: action.callback &&
     63                                    lang.hitch(this,this._onSelectedAction,
     64                                            action.callback),
     65                            properties: {
     66                                blockButton: true,
     67                                label: action.title || actionName,
     68                                icon: action.icon,
     69                                tooltip: action.description
     70                            }
     71
     72                        };
     73                    }
    7274                }
    7375            }
     
    180182            if (this.itemActions) {
    181183                for (var actionName in this.itemActions) {
    182                     action = this.itemActions[actionName];
    183                     actions[actionName] = {
    184                         callback: action.callback && lang.partial(action.callback,item),
    185                         properties: {
    186                             blockButton: false,
    187                             showLabel: false,
    188                             icon: action.icon + " black",
    189                             tooltip: action.description
    190                         }
    191                     };
     184                    if ( this.itemActions.hasOwnProperty(actionName) ) {
     185                        action = this.itemActions[actionName];
     186                        actions[actionName] = {
     187                            callback: action.callback && lang.partial(action.callback,item),
     188                            properties: {
     189                                blockButton: false,
     190                                showLabel: false,
     191                                icon: action.icon + " black",
     192                                tooltip: action.description
     193                            }
     194                        };
     195                    }
    192196                }
    193197            }
  • Dev/trunk/src/client/qed-client/widgets/_ComplexValueMixin.coffee

    r466 r472  
    4646            # widgets within other forms, the onSubmit must either be
    4747            # ignored or propagated, but not handled here.
    48             event.stop if e
     48            event.stop e if e
    4949            false
Note: See TracChangeset for help on using the changeset viewer.