(name, value, callback)
| 199 | } |
| 200 | |
| 201 | function withMandatory(name, value, callback) { |
| 202 | if (!value) { |
| 203 | return { fired: false, message: "No " + name + " specified." }; |
| 204 | } |
| 205 | callback(); |
| 206 | return { fired: true }; |
| 207 | } |
| 208 | |
| 209 | function addAction(type, callback, user_id, item_id, rlabs, source, rectag, pos, click_only, extra_data) { |
| 210 | return withMandatory("user_id", user_id, function () { |
no outgoing calls
no test coverage detected