summaryrefslogtreecommitdiffstats
path: root/dev/jquery.jtable.utils.js
diff options
context:
space:
mode:
authorhikalkan <hi_kalkan@yahoo.com>2014-03-05 21:00:35 +0200
committerhikalkan <hi_kalkan@yahoo.com>2014-03-05 21:00:35 +0200
commitbc47eca00f84edb1294526e7b468ab1064677a42 (patch)
tree5ff7f6a230a82733d0203b3092fac15152edd7af /dev/jquery.jtable.utils.js
parentac038f4e00ec133d2dd9898cd0a4200aa24de103 (diff)
downloadjtable-bc47eca00f84edb1294526e7b468ab1064677a42.zip
jtable-bc47eca00f84edb1294526e7b468ab1064677a42.tar.gz
jtable-bc47eca00f84edb1294526e7b468ab1064677a42.tar.bz2
Functions as actions support
Can define functions as actions instead of URL strings. Define a function that returns a deffered or the result.
Diffstat (limited to 'dev/jquery.jtable.utils.js')
-rw-r--r--dev/jquery.jtable.utils.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/dev/jquery.jtable.utils.js b/dev/jquery.jtable.utils.js
index 9b92f0c..5080f16 100644
--- a/dev/jquery.jtable.utils.js
+++ b/dev/jquery.jtable.utils.js
@@ -94,6 +94,12 @@
return str;
},
+ /* Checks if given object is a jQuery Deferred object.
+ */
+ _isDeferredObject: function (obj) {
+ return obj.then && obj.done && obj.fail;
+ },
+
//Logging methods ////////////////////////////////////////////////////////
_logDebug: function (text) {