Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>Title of the document</title>
- <script>
- function core() {
- var foo = "foo, bar, baz";
- Event.trigger('foo.post', foo);
- }
- function plugin(params) {
- console.log("Plugin can do something with: " + params);
- }
- Event.connect('foo.post', plugin);
- core();
- </script>
- </head>
- <body>
- defefefe
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement