vendor/assets/javascripts/paloma/paloma.js in paloma-4.0.0 vs vendor/assets/javascripts/paloma/paloma.js in paloma-4.1.0
- old
+ new
@@ -14,6 +14,17 @@
};
Paloma.engine = new Paloma.Engine({factory: Paloma._controllerFactory});
+
+ Paloma.executeHook = function(){
+ var $hook = $('.js-paloma-hook:first script:first');
+
+ if ($hook.length == 0){ return; }
+
+ var hook = $hook.html();
+ eval(hook);
+ };
+
+
})(window.Paloma);
\ No newline at end of file