aboutsummaryrefslogtreecommitdiff
path: root/js/tests
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-09 00:56:12 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-09 00:56:12 +0000
commitbcbea78bf91718bdc71c0ccf34a63015bbc872a7 (patch)
tree1e95bf248e3579425bdc58a9f5184edfb0f42001 /js/tests
parent1bcd45c31533f1b47c60a77fc71a4b98ce7620c0 (diff)
downloadelgg-bcbea78bf91718bdc71c0ccf34a63015bbc872a7.tar.gz
elgg-bcbea78bf91718bdc71c0ccf34a63015bbc872a7.tar.bz2
Using nullFunction reference instead of new closure in ajaxOptionsTest
git-svn-id: http://code.elgg.org/elgg/trunk@7265 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'js/tests')
-rw-r--r--js/tests/ElggAjaxOptionsTest.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/js/tests/ElggAjaxOptionsTest.js b/js/tests/ElggAjaxOptionsTest.js
index 8a2b7f574..0b1b7e6d7 100644
--- a/js/tests/ElggAjaxOptionsTest.js
+++ b/js/tests/ElggAjaxOptionsTest.js
@@ -45,11 +45,10 @@ ElggAjaxOptionsTest.prototype.testHandleOptionsAcceptsUrlThenDataOnly = function
ElggAjaxOptionsTest.prototype.testHandleOptionsAcceptsUrlThenSuccessOnly = function() {
var url = 'url',
- success = function() {},
- result = elgg.ajax.handleOptions(url, success);
+ result = elgg.ajax.handleOptions(url, elgg.nullFunction);
assertEquals(url, result.url);
- assertEquals(success, result.success);
+ assertEquals(elgg.nullFunction, result.success);
};
ElggAjaxOptionsTest.prototype.testHandleOptionsAcceptsUrlThenOptions = function() {