IE .splice() second param requirement
authorDarren <darren@darrenwhitlen.com>
Fri, 12 Oct 2012 13:10:38 +0000 (14:10 +0100)
committerDarren <darren@darrenwhitlen.com>
Fri, 12 Oct 2012 13:10:38 +0000 (14:10 +0100)
client/dev/view.js

index 5b37ebdcbe13a0c3554c3de7dac6eff8cd7acbdf..caa0464588a00e5f399f188f709e036e34c8e452 100644 (file)
@@ -653,9 +653,9 @@ kiwi.view.ControlBox = Backbone.View.extend({
             inp_val = inp_val.trim();\r
 \r
             if (inp_val) {\r
-                this.processInput(inp.val());\r
+                this.processInput(inp_val);\r
 \r
-                this.buffer.push(inp.val());\r
+                this.buffer.push(inp_val);\r
                 this.buffer_pos = this.buffer.length;\r
             }\r
 \r
@@ -763,7 +763,7 @@ kiwi.view.ControlBox = Backbone.View.extend({
         params = command_raw.split(' ');\r
         if (params[0][0] === '/') {\r
             command = params[0].substr(1).toLowerCase();\r
-            params = params.splice(1);\r
+            params = params.splice(1, params.length - 1);\r
         } else {\r
             // Default command\r
             command = 'msg';\r