commit | 7c8ced2a8fc589870a92453e7b8c4d7166ea6bdb | [log] [tgz] |
---|---|---|
author | Nils Diewald <nils@diewald-online.de> | Wed Apr 15 19:21:00 2015 +0000 |
committer | Nils Diewald <nils@diewald-online.de> | Wed Apr 15 19:21:00 2015 +0000 |
tree | 09bb6ab61491e877b48030d91e809eecbcd9031b | |
parent | 0e6992abf035e1cbeadeea14220a9a4a9e0fde78 [diff] [blame] |
Test suite now relies on requirejs as well
diff --git a/dev/js/src/util.js b/dev/js/src/util.js index d183c36..b3bb423 100644 --- a/dev/js/src/util.js +++ b/dev/js/src/util.js
@@ -10,6 +10,11 @@ }; }; +var _quoteRE = new RegExp("([\"\\\\])", 'g'); +String.prototype.quote = function () { + return this.replace(_quoteRE, '\\$1'); +}; + // Add toggleClass method similar to jquery HTMLElement.prototype.toggleClass = function (c1, c2) { var cl = this.classList;