From: brettp Date: Fri, 1 Apr 2011 22:40:25 +0000 (+0000) Subject: Returning false in JS hooks is now sent through to the calling trigger. Null still... X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=248b8cba2332ca73cb6d8a797b75162a13c80ff1;p=lorea%2Felgg.git Returning false in JS hooks is now sent through to the calling trigger. Null still returns the original value. git-svn-id: http://code.elgg.org/elgg/trunk@8898 36083f99-b078-4883-b0ff-0f9b5a30f544 --- diff --git a/js/lib/hooks.js b/js/lib/hooks.js index aab129d6e..eeaffb846 100644 --- a/js/lib/hooks.js +++ b/js/lib/hooks.js @@ -88,5 +88,5 @@ elgg.trigger_hook = function(name, type, params, value) { return true; }); - return tempReturnValue || returnValue; + return (tempReturnValue !== null) ? tempReturnValue : returnValue; }; \ No newline at end of file