aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-01 22:40:25 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-01 22:40:25 +0000
commit248b8cba2332ca73cb6d8a797b75162a13c80ff1 (patch)
tree504a197e8f54a28f125317be5c1e5e4fbfaacdf6 /js
parentf00d92332b6261eb2bc22c712b9d039092022ae1 (diff)
downloadelgg-248b8cba2332ca73cb6d8a797b75162a13c80ff1.tar.gz
elgg-248b8cba2332ca73cb6d8a797b75162a13c80ff1.tar.bz2
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
Diffstat (limited to 'js')
-rw-r--r--js/lib/hooks.js2
1 files changed, 1 insertions, 1 deletions
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