From 2fc4596587ce943026187037c223d126e750780f Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Sat, 24 Jul 2010 14:49:27 -0400
Subject: [PATCH] - Allow commands with mutiple - (#1486851)

---
 program/js/app.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/program/js/app.js b/program/js/app.js
index 4cdb876..25ab468 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -977,7 +977,7 @@
 
       // unified command call (command name == function name)
       default:
-        var func = command.replace('-', '_');
+        var func = command.replace(/-/g, '_');
         if (this[func] && typeof this[func] == 'function')
           this[func](props);
         break;

--
Gitblit v1.9.1