Use strict
Requires turning IrcUtils into an Angular service, because the global variable trick won't work with use strict. Reuse is still easily possible by removing the angular wrapping around it.
This commit is contained in:
parent
8758cad336
commit
a80db339f8
12 changed files with 100 additions and 55 deletions
|
@ -1,4 +1,5 @@
|
|||
(function(exports) {// http://weechat.org/files/doc/devel/weechat_dev.en.html#color_codes_in_strings
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* WeeChat protocol handling.
|
||||
|
@ -604,16 +605,6 @@
|
|||
return defaults;
|
||||
};
|
||||
|
||||
/**
|
||||
* Add the ID to the previously formatted command
|
||||
*
|
||||
* @param id Command ID
|
||||
* @param command previously formatted command
|
||||
*/
|
||||
WeeChatProtocol.setId = function(id, command) {
|
||||
return '(' + id + ') ' + command;
|
||||
};
|
||||
|
||||
/**
|
||||
* Formats a command.
|
||||
*
|
||||
|
@ -966,7 +957,7 @@
|
|||
var objs = [];
|
||||
var hpath = this._getString();
|
||||
|
||||
keys = this._getString().split(',');
|
||||
var keys = this._getString().split(',');
|
||||
paths = hpath.split('/');
|
||||
count = this._getInt();
|
||||
|
||||
|
@ -1179,6 +1170,17 @@
|
|||
this._data = data;
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Add the ID to the previously formatted command
|
||||
*
|
||||
* @param id Command ID
|
||||
* @param command previously formatted command
|
||||
*/
|
||||
setId: function(id, command) {
|
||||
return '(' + id + ') ' + command;
|
||||
},
|
||||
|
||||
/**
|
||||
* Parses a WeeChat message.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue