|
|
@ -159,5 +159,5 @@ export function set_store_value(store, ret, value = ret) {
|
|
|
|
export const has_prop = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);
|
|
|
|
export const has_prop = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);
|
|
|
|
|
|
|
|
|
|
|
|
export function action_destroyer(action_result) {
|
|
|
|
export function action_destroyer(action_result) {
|
|
|
|
return action_result && is_function(action_result.destroy) ? action_result.destroy.bind(action_result) : noop;
|
|
|
|
return action_result && is_function(action_result.destroy) ? () => action_result.destroy() : noop;
|
|
|
|
}
|
|
|
|
}
|
|
|
|