summaryrefslogtreecommitdiff
path: root/plugins/af_zz_noautoplay
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2016-08-10 12:22:55 +0300
committerAndrew Dolgov <[email protected]>2016-08-10 12:22:55 +0300
commitf6d2787a8e139da6af412f87645402e0c193af01 (patch)
tree1f7c157410b0164aa5e1498c060f67a68606f036 /plugins/af_zz_noautoplay
parentfd539f280058f2606ba6a59403287b824b6fd195 (diff)
plugins: use require() to hook into dojo
Diffstat (limited to 'plugins/af_zz_noautoplay')
-rw-r--r--plugins/af_zz_noautoplay/init.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/af_zz_noautoplay/init.js b/plugins/af_zz_noautoplay/init.js
index 3cf3a381c..45dfc55ab 100644
--- a/plugins/af_zz_noautoplay/init.js
+++ b/plugins/af_zz_noautoplay/init.js
@@ -1,5 +1,5 @@
require(['dojo/_base/kernel', 'dojo/ready'], function (dojo, ready) {
- dojo.addOnLoad(function () {
+ ready(function () {
PluginHost.register(PluginHost.HOOK_ARTICLE_RENDERED_CDM, function (row) {
if (row) {
console.log("af_zz_noautoplay!");
@@ -37,7 +37,5 @@ require(['dojo/_base/kernel', 'dojo/ready'], function (dojo, ready) {
return true;
});
-
});
-
}); \ No newline at end of file