Skip to content

Commit

Permalink
style(template strings for concatenation): uses the new template stri…
Browse files Browse the repository at this point in the history
…ng notation for concating string
  • Loading branch information
arjunkathuria committed Jun 14, 2016
1 parent 709d559 commit 18cdcad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/recognizers/press.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ inherit(PressRecognizer, Recognizer, {
}

if (input && (input.eventType & INPUT_END)) {
this.manager.emit(this.options.event + 'up', input);
this.manager.emit(`${this.options.event}up`, input);
} else {
this._input.timeStamp = now();
this.manager.emit(this.options.event, this._input);
Expand Down
2 changes: 1 addition & 1 deletion src/utils/deprecate.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @returns {Function} A new function wrapping the supplied method.
*/
export default function deprecate(method, name, message) {
let deprecationMessage = 'DEPRECATED METHOD: ' + name + '\n' + message + ' AT \n';
let deprecationMessage = `DEPRECATED METHOD: ${name}\n${message} AT \n`;
return function() {
let e = new Error('get-stack-trace');
let stack = e && e.stack ? e.stack.replace(/^[^\(]+?[\n$]/gm, '')
Expand Down

0 comments on commit 18cdcad

Please sign in to comment.