Board Thread:News and Announcements/@comment-5518179-20150311213639/@comment-5518179-20150313015446

When sending a message in Chrome, I get this error in my console.

Uncaught TypeError: undefined is not a function

Upon looking at an attached link, it highlights this line of code (Line 32)

NodeChatController.prototype.sendMessage=function(event){if(this.active&&event.which==13&&!event.shiftKey){var inputField=$(event.target),inputValue=inputField.val,inputValueLength=inputValue.length;event.preventDefault;inputValue=chatPlugins.modules.slashCommands.test(inputValue);if(inputValue.length&&inputValueLength<=this.maxCharacterLimit&&inputValue.match(/^\/(?!me\s)/)==null){var chatEntry=new models.ChatEntry({roomId:this.roomId,name:wgUserName,text:inputValue});if(!this.isMain){if(this.afterInitQueue.length<1||this.model.users.length<2){this.mainController.socket.send(this.model.privateRoom.xport);}if(!this.isInitialized){this.afterInitQueue.push(chatEntry.xport);chatEntry.set({temp:true,avatarSrc:wgAvatarUrl});this.model.chats.add(chatEntry);}else{this.socket.send(chatEntry.xport);}}else{this.socket.send(chatEntry.xport);}inputField.val('').focus;$('body').removeClass('warn limit-near limit-reached');}}}

There are also a couple other errors in the dropdown.

NodeChatController.sendMessagejquery,mediawiki:10

proxychat_js2:507

Backbone.Events.triggerchat_js2:626

(anonymous function)chat_js2:501

(anonymous function)jquery,mediawiki:45

jQuery.event.dispatchjquery,mediawiki:38

elemData.handle.eventHandle