]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Returning false in JS hooks is now sent through to the calling trigger. Null still...
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 1 Apr 2011 22:40:25 +0000 (22:40 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 1 Apr 2011 22:40:25 +0000 (22:40 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8898 36083f99-b078-4883-b0ff-0f9b5a30f544

js/lib/hooks.js

index aab129d6eea05ee835dc5cd6d8615dd6960c18ce..eeaffb846da4a3bb8c75a45599010e7525bff602 100644 (file)
@@ -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