Skip to content

Commit dc2b203

Browse files
committed
fix render === to !==
1 parent fa85d8a commit dc2b203

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

response.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @link http://responsejs.com
44
* @author Ryan Van Etten (c) 2011-2012
55
* @license MIT
6-
* @version 0.5.2
6+
* @version 0.5.3
77
* @requires jQuery 1.7+
88
* -or- Jeesh (ender.no.de/#jeesh)
99
* -or- Zepto 0.8+ (zeptojs.com)
@@ -261,7 +261,7 @@
261261

262262
function render(s) {
263263
var n;
264-
return (!s || typeof s === 'string' ? s // unchanged
264+
return (!s || typeof s !== 'string' ? s // unchanged
265265
: 'true' === s ? true // convert "true" to true
266266
: 'false' === s ? false // convert "false" to false
267267
: 'undefined' === s ? n // convert "undefined" to undefined

response.min.js

+17-17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)