Permalink
Browse files

Added documentation about the wait-for-load helper function

  • Loading branch information...
1 parent 2eb2aaf commit 5d368c17b1cffda803bec02dbc634b9a55ce80d7 @ckirkendall committed Jun 24, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 README.textile
View
9 README.textile
@@ -147,6 +147,15 @@ at compile time:
(map #(snippit2 % (fruit-data %)) (keys fruit-data))))
</pre>
+If, snippets and/or templates are loaded via AJAX it is important to make sure the
+content has been loaded before calling the template or snippit function. Enfocus
+provides a convient function that works like an onload callback but for AJAX driven
+snippets and templates.
+
+<pre>
+(em/wait-for-load (render-page))
+</pre>
+
An action is a set of transforms that take place on the live dom. below is a
definition of a an action.

0 comments on commit 5d368c1

Please sign in to comment.