summaryrefslogtreecommitdiff
path: root/includes/js/dojox/dtl/contrib/objects.js
diff options
context:
space:
mode:
Diffstat (limited to 'includes/js/dojox/dtl/contrib/objects.js')
-rw-r--r--includes/js/dojox/dtl/contrib/objects.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/includes/js/dojox/dtl/contrib/objects.js b/includes/js/dojox/dtl/contrib/objects.js
new file mode 100644
index 0000000..d29c0df
--- /dev/null
+++ b/includes/js/dojox/dtl/contrib/objects.js
@@ -0,0 +1,15 @@
+if(!dojo._hasResource["dojox.dtl.contrib.objects"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.dtl.contrib.objects"] = true;
+dojo.provide("dojox.dtl.contrib.objects");
+
+dojo.mixin(dojox.dtl.contrib.objects, {
+ key: function(value, arg){
+ return value[arg];
+ }
+});
+
+dojox.dtl.register.filters("dojox.dtl.contrib", {
+ "objects": ["key"]
+});
+
+}