From 3d8b147fe676a41191c09cf655a2b13fe69ab17c Mon Sep 17 00:00:00 2001
From: Carsten Brandt <mail@cebe.cc>
Date: Sat, 17 Aug 2013 12:34:39 +0200
Subject: [PATCH] doc fix in view.md guide registerJS instead of registerScript

fixes #774
---
 docs/guide/view.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/guide/view.md b/docs/guide/view.md
index e3817ee..c9f792b 100644
--- a/docs/guide/view.md
+++ b/docs/guide/view.md
@@ -207,12 +207,12 @@ page. We're using third argument so one of the views could override it.
 
 ### Registering scripts
 
-With View object you can register scripts. There are two dedicated methods for it: `registerScript` for inline scripts
+With View object you can register scripts. There are two dedicated methods for it: `registerJs` for inline scripts
 and `registerJsFile` for external scripts. Inline scripts are useful for configuration and dynamically generated code.
 The method for adding these can be used as follows:
 
 ```php
-$this->registerScript("var options = ".json_encode($options).";", View::POS_END, 'my-options');
+$this->registerJs("var options = ".json_encode($options).";", View::POS_END, 'my-options');
 ```
 
 First argument is the actual code where we're converting a PHP array of options to JavaScript one. Second argument
--
libgit2 0.27.1