Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add hook for finalizing js_preload.

Useful if things generated in multiple places need to be coalesced into
a single preload URL.
  • Loading branch information...
commit 02a72a27cbd6efb1684d15c2106f2f0200bf6e9e 1 parent 61ebe06
@spladug spladug authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  r2/r2/lib/template_helpers.py
View
2  r2/r2/lib/template_helpers.py
@@ -170,6 +170,8 @@ def set(self, url, data):
self.data[url] = data
def use(self):
+ hooks.get_hook("js_preload.use").call(js_preload=self)
+
if self.data:
return js.DataSource.use(self)
else:
Please sign in to comment.
Something went wrong with that request. Please try again.