Prefer single quotes
// FREEBIE
This commit is contained in:
parent
0e2d2d60c2
commit
1d6e391dd6
4 changed files with 78 additions and 78 deletions
|
@ -8,21 +8,21 @@
|
|||
// TODO: Factor out private and group subclasses of Conversation
|
||||
|
||||
var COLORS = [
|
||||
"#EF5350", // red
|
||||
"#EC407A", // pink
|
||||
"#AB47BC", // purple
|
||||
"#7E57C2", // deep purple
|
||||
"#5C6BC0", // indigo
|
||||
"#2196F3", // blue
|
||||
"#03A9F4", // light blue
|
||||
"#00BCD4", // cyan
|
||||
"#009688", // teal
|
||||
"#4CAF50", // green
|
||||
"#7CB342", // light green
|
||||
"#FF9800", // orange
|
||||
"#FF5722", // deep orange
|
||||
"#FFB300", // amber
|
||||
"#607D8B", // blue grey
|
||||
'#EF5350', // red
|
||||
'#EC407A', // pink
|
||||
'#AB47BC', // purple
|
||||
'#7E57C2', // deep purple
|
||||
'#5C6BC0', // indigo
|
||||
'#2196F3', // blue
|
||||
'#03A9F4', // light blue
|
||||
'#00BCD4', // cyan
|
||||
'#009688', // teal
|
||||
'#4CAF50', // green
|
||||
'#7CB342', // light green
|
||||
'#FF9800', // orange
|
||||
'#FF5722', // deep orange
|
||||
'#FFB300', // amber
|
||||
'#607D8B', // blue grey
|
||||
];
|
||||
|
||||
Whisper.Conversation = Backbone.Model.extend({
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
var ctx = canvas.getContext('2d');
|
||||
ctx.drawImage(img, 0, 0);
|
||||
URL.revokeObjectURL(svgurl);
|
||||
resolve(canvas.toDataURL("image/png"));
|
||||
resolve(canvas.toDataURL('image/png'));
|
||||
};
|
||||
|
||||
img.src = svgurl;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
var URL_REGEX = /(^|[\s\n]|<br\/?>)((?:https?|ftp):\/\/[\-A-Z0-9\u00A0-\uD7FF\uE000-\uFDCF\uFDF0-\uFFFD+\u0026\u2019@#\/%?=()~_|!:,.;]*[\-A-Z0-9+\u0026@#\/%=~()_|])/gi;
|
||||
|
||||
Whisper.MessageView = Whisper.View.extend({
|
||||
tagName: "li",
|
||||
tagName: 'li',
|
||||
templateName: 'message',
|
||||
initialize: function() {
|
||||
this.listenTo(this.model, 'change:errors', this.onErrorsChanged);
|
||||
|
@ -30,7 +30,7 @@
|
|||
e.stopPropagation();
|
||||
},
|
||||
className: function() {
|
||||
return ["entry", this.model.get('type')].join(' ');
|
||||
return ['entry', this.model.get('type')].join(' ');
|
||||
},
|
||||
renderPending: function() {
|
||||
this.$el.addClass('pending');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue