Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

comments

  • Loading branch information...
commit b00c9af66fd95300fd74ab8b4a13be7709826edf 1 parent 07e8d94
@purplecabbage purplecabbage authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 framework/PGView.xaml.cs
View
9 framework/PGView.xaml.cs
@@ -138,6 +138,15 @@ void GapBrowser_Navigating(object sender, NavigatingEventArgs e)
//throw new NotImplementedException();
}
+ /*
+ * This method does the work of routing commands
+ * NotifyEventArgs.Value contains a string passed from JS
+ * If the command already exists in our map, we will just attempt to call the method(action) specified, and pass the args along
+ * Otherwise, we create a new instance of the command, add it to the map, and call it ...
+ * This method may also receive JS error messages caught by window.onerror, in any case where the commandStr does not appear to be a valid command
+ * it is simply output to the debugger output, and the method returns.
+ *
+ **/
void GapBrowser_ScriptNotify(object sender, NotifyEventArgs e)
{
//{"action":"log","service":"Debug","params":"This is a message","callbackId":"Debug0"}
Please sign in to comment.
Something went wrong with that request. Please try again.