summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-05-26 18:07:08 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-05-26 18:07:08 +0200
commit3d5761ff934b95b698134700fa5b02ad3b990d95 (patch)
tree4400e2bec9831aaa67833e06e9c9945a982d1a58
parentd443d4cf18801a5f1c575217fd8a5cbf5b61c8fe (diff)
get rid of extra document line
-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