shindig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1145361 - in /shindig/trunk/features/src/main/javascript/features/defer.test: ./ defertest.js feature.xml
Date Mon, 11 Jul 2011 21:22:29 GMT
Author: johnh
Date: Mon Jul 11 21:22:29 2011
New Revision: 1145361

URL: http://svn.apache.org/viewvc?rev=1145361&view=rev
Log:
Small feature useful for writing deferred symbol tests.


Added:
    shindig/trunk/features/src/main/javascript/features/defer.test/
    shindig/trunk/features/src/main/javascript/features/defer.test/defertest.js
    shindig/trunk/features/src/main/javascript/features/defer.test/feature.xml

Added: shindig/trunk/features/src/main/javascript/features/defer.test/defertest.js
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/defer.test/defertest.js?rev=1145361&view=auto
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/defer.test/defertest.js (added)
+++ shindig/trunk/features/src/main/javascript/features/defer.test/defertest.js Mon Jul 11
21:22:29 2011
@@ -0,0 +1,10 @@
+shindig.defer = (function() {
+  function callback(callback) {
+    var args = [].slice.call(arguments, 1);
+    callback.apply(null, args);
+  }
+
+  return {
+    callback: callback
+  };
+})();

Added: shindig/trunk/features/src/main/javascript/features/defer.test/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/defer.test/feature.xml?rev=1145361&view=auto
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/defer.test/feature.xml (added)
+++ shindig/trunk/features/src/main/javascript/features/defer.test/feature.xml Mon Jul 11
21:22:29 2011
@@ -0,0 +1,10 @@
+<feature>
+  <name>defer.test</name>
+  <dependency>globals</dependency>
+  <all>
+    <script src="defertest.js"/>
+    <api supportDefer="true">
+      <exports type="js">shindig.defer.callback</exports>
+    </api>
+  </all>
+</feature>



Mime
View raw message