From 8b4b5fb05871ad711291d7887965d2be1b3610c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 23 Feb 2015 14:00:14 +0100 Subject: [PATCH] Documented slightly changed view model registration Still backwards compatible though! --- docs/plugins/gettingstarted.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/plugins/gettingstarted.rst b/docs/plugins/gettingstarted.rst index 92aa1083..61f58e3f 100644 --- a/docs/plugins/gettingstarted.rst +++ b/docs/plugins/gettingstarted.rst @@ -594,8 +594,8 @@ like so: } // This is how our plugin registers itself with the application, by adding some configuration - // information to the global variable ADDITIONAL_VIEWMODELS - ADDITIONAL_VIEWMODELS.push([ + // information to the global variable OCTOPRINT_VIEWMODELS + OCTOPRINT_VIEWMODELS.push([ // This is the constructor to call for instantiating the plugin HelloWorldViewModel, @@ -604,8 +604,8 @@ like so: // instantiation via the parameters argument ["settingsViewModel"], - // Finally, this is the list of all elements we want this view model to be bound to. - [document.getElementById("tab_plugin_helloworld")] + // Finally, this is the list of selectors for all elements we want this view model to be bound to. + ["#tab_plugin_helloworld"] ]); });