Changeset 472 for Dev/trunk/src/client/qed-client/widgets/ObjectBox.js
- Timestamp:
- 07/01/13 03:34:23 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/client/qed-client/widgets/ObjectBox.js
r443 r472 41 41 var line3Actions = {}; 42 42 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 } 53 55 } 54 56 return line3Actions;
Note: See TracChangeset
for help on using the changeset viewer.