summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/plugins.rst4
1 files changed, 1 insertions, 3 deletions
diff --git a/docs/plugins.rst b/docs/plugins.rst
index 53a627acb..6a77cc541 100644
--- a/docs/plugins.rst
+++ b/docs/plugins.rst
@@ -96,10 +96,8 @@ Inside your script you have to make sure that the News app is active. You can do
(function ($, window, undefined) {
'use strict';
-
- var document = window.document;
- $(document).ready(function () {
+ $(window.document).ready(function () {
if ($('[ng-app="News"]').length > 0) {
// your code here