This repository has been archived by the owner. It is now read-only.
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...
1 parent 61ebe06 commit 02a72a27cbd6efb1684d15c2106f2f0200bf6e9e @spladug spladug committed Mar 29, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 r2/r2/lib/
@@ -170,6 +170,8 @@ def set(self, url, data):[url] = data
def use(self):
+ hooks.get_hook("js_preload.use").call(js_preload=self)
return js.DataSource.use(self)

0 comments on commit 02a72a2

Please sign in to comment.