From 03947b0d7f1830e533e9c8d1199a9717c25d4aeb Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 19 May 2012 12:09:48 +0400 Subject: [PATCH] add Ox.identity --- source/Ox/js/Function.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/Ox/js/Function.js b/source/Ox/js/Function.js index 789c0946..ce1e2ed6 100644 --- a/source/Ox/js/Function.js +++ b/source/Ox/js/Function.js @@ -53,6 +53,10 @@ Ox.cache = function(fn, options) { return ret; }; +Ox.identity = function(val) { + return val; +}; + /*@ Ox.void Returns nothing and calls options callback without arguments This can be useful to combine a synchronous and an asynchronous code path.