From 17e5798b7e4ea190ea956de471daf6eab8c690e9 Mon Sep 17 00:00:00 2001 From: Yonel Ceruto Date: Mon, 12 Jun 2017 18:20:49 -0400 Subject: [PATCH] [Frontend/Encore] Fix greet.js example --- frontend/encore/simple-example.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/encore/simple-example.rst b/frontend/encore/simple-example.rst index 65ee0891107..deec8b374f5 100644 --- a/frontend/encore/simple-example.rst +++ b/frontend/encore/simple-example.rst @@ -128,8 +128,8 @@ Great! Use ``require()`` to import ``jquery`` and ``greet.js``: // ./ (or ../) means to look for a local file var greet = require('./greet'); - $(document).ready(function()) { - $('h1').html(greet()); + $(document).ready(function() { + $('h1').html(greet('john')); }); That's it! When you build your assets, jQuery and ``greet.js`` will automatically