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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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;
Note: See TracChangeset for help on using the changeset viewer.