[Bps-public-commit] Path-Dispatcher-Debugger branch, master, updated. 73606245a9fef06586ee7b5126a2d98f62a2ed29

sartak at bestpractical.com sartak at bestpractical.com
Wed Dec 23 14:31:15 EST 2009


The branch, master has been updated
       via  73606245a9fef06586ee7b5126a2d98f62a2ed29 (commit)
      from  f37c57bad122b30e8a2a5a8390538c449fe348bb (commit)

Summary of changes:
 share/path-dispatcher-debugger.js |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

- Log -----------------------------------------------------------------
commit 73606245a9fef06586ee7b5126a2d98f62a2ed29
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Wed Dec 23 14:31:00 2009 -0500

    Factor out the update_matching_rules function

diff --git a/share/path-dispatcher-debugger.js b/share/path-dispatcher-debugger.js
index 91e9465..3b9e135 100644
--- a/share/path-dispatcher-debugger.js
+++ b/share/path-dispatcher-debugger.js
@@ -1,11 +1,15 @@
+var PathDispatcherDebugger = {};
+
+PathDispatcherDebugger.update_matching_rules = function (response) {
+    jQuery('#matching_rules').html(response);
+};
+
 jQuery(function () {
     jQuery('.path_tester').bind('keyup', function () {
         jQuery.get(
             '/matching_rules',
             { test_path: this.value },
-            function (response) {
-                jQuery('#matching_rules').html(response);
-            },
+            PathDispatcherDebugger.update_matching_rules,
             'html'
         );
     });

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list