Skip to content

Commit

Permalink
needs double double slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanve committed Mar 8, 2012
1 parent 994bab4 commit 82e8f5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions response.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @link http://responsejs.com
* @author Ryan Van Etten (c) 2011-2012
* @license MIT
* @version 0.4.1
* @version 0.4.2
* @requires jQuery 1.7+ or Zepto 0.8+
*/

Expand Down Expand Up @@ -805,8 +805,8 @@
var r = []
, i = keys.length;
while ( i && i-- ) {
if (i in keys) {
r[i] = '[' + datatize(keys[i].replace(regexSelectorOps, '\\$1')) + ']';
if (keys[i]) {
r[i] = '[' + datatize(keys[i].replace(regexSelectorOps, '\\\\$1')) + ']';
}
}
return r.join();
Expand Down

0 comments on commit 82e8f5b

Please sign in to comment.