friendica/view/js/addon-hooks.js

11 lines
180 B
JavaScript
Raw Normal View History

2018-06-07 22:23:30 +02:00
var addon_hooks={};
function Addon_registerHook( type, hookfnstr )
{
if (!addon_hooks.hasOwnProperty(type)) {
addon_hooks[type]=[];
}
addon_hooks[type].push( hookfnstr );
}