FEATURE: ship lazyYT plugin by default

This commit is contained in:
Arpit Jalan
2014-07-22 08:09:32 +05:30
parent a4cdf33b22
commit a711575947
6 changed files with 139 additions and 0 deletions

View File

@ -0,0 +1,13 @@
/**
Apply lazyYT when the app boots
**/
import { decorateCooked } from 'discourse/lib/plugin-api';
export default {
name: "apply-lazyYT",
initialize: function(container) {
decorateCooked(container, function($elem) {
$('.lazyYT', $elem).lazyYT();
});
}
};