Skip to content

Commit fa85d8a

Browse files
committed
bump to 0.5.2
1 parent ed2dcc2 commit fa85d8a

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

response.js

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

12-
;this.Response = (function( window, undef ) {// this === window in the global scope
12+
;this.Response = (function( window ) {// this === window in the global scope
1313

1414
// Combine local vars/funcs into one statement:
1515

@@ -23,9 +23,8 @@
2323
, ready = $.domReady || $
2424
, $win = $(window) // cache selector
2525
, slice = [].slice // jsperf.com/arrayify-slice/2
26-
, screen = window.screen // local for better minification and scope traversal
27-
, max = Math.max // local for better minification and scope traversal
28-
, isFinite = window.isFinite // local for better minification and scope traversal
26+
, screen = window.screen // local for better minification
27+
, max = Math.max // local for better minification
2928

3029
// these are defined later
3130
, Elemset, band, wave, device = {}
@@ -62,9 +61,9 @@
6261
return {};
6362
}
6463

65-
// Use isArray when available. With inspiration from
64+
// Use native isArray when available. With inspiration from
6665
// github.com/ded/valentine and github.com/documentcloud/underscore
67-
, isArray = Array.isArray || function(ukn) {
66+
, isArray = Array.isArray || $.isArray || function(ukn) {
6867
return ukn instanceof Array;
6968
}
7069

@@ -98,7 +97,7 @@
9897
return docElem.clientWidth;
9998
}
10099

101-
function viewportH() {
100+
function viewportH() {
102101
return docElem.clientHeight;
103102
}
104103

@@ -265,7 +264,7 @@
265264
return (!s || typeof s === 'string' ? s // unchanged
266265
: 'true' === s ? true // convert "true" to true
267266
: 'false' === s ? false // convert "false" to false
268-
: 'undefined' === s ? undef // convert "undefined" to undefined
267+
: 'undefined' === s ? n // convert "undefined" to undefined
269268
: 'null' === s ? null // convert "null" to null
270269
: isFinite((n = parseFloat(s))) ? n // convert "1000" to 1000
271270
: s // unchanged
@@ -514,7 +513,7 @@
514513

515514
/**
516515
* Response.overflowX() Get the number of pixels that the document width exceeds viewport width.
517-
*
516+
* may be @depreciated in near future @link github.com/ryanve/response.js/issues/6
518517
* @return integer pixel amount that horizontal content overflows viewport (or 0 if there's no overflow).
519518
*/
520519

@@ -526,7 +525,7 @@
526525

527526
/**
528527
* Response.overflowY() Get the number of pixels that the document height exceeds viewport height.
529-
*
528+
* may be @depreciated in near future @link github.com/ryanve/response.js/issues/6
530529
* @return integer pixel amount that vertical content overflows the viewport (or 0 if there's no overflow).
531530
*/
532531

@@ -837,7 +836,7 @@
837836
, dynamic: 0 // boolean defined @ configure()
838837
, values: [] // array available values
839838
, fn: 0 // callback the test fn, defined @ configure()
840-
, verge: undef // integer defaults to Math.min(screenMax, 500)
839+
, verge: null // integer defaults to Math.min(screenMax, 500)
841840
, newValue: 0
842841
, currValue: 1
843842
, aka: 0
@@ -946,7 +945,7 @@
946945

947946
// Use the breakpoints array to create array of data keys:
948947
context.keys = affix(context.breakpoints, context.prefix);
949-
context.aka = undef; // Reset to undef just in case a value was merged in.
948+
context.aka = false; // Reset to false just in case a value was merged in.
950949

951950
if (aliases) {// There may be one of more aliases:
952951
aliasKeys = [];
@@ -1228,7 +1227,7 @@
12281227
, store: store
12291228
, access: access
12301229
, target: target
1231-
, overflowX: overflowX
1230+
, overflowX: overflowX // github.com/ryanve/response.js/issues/6
12321231
, overflowY: overflowY
12331232
, object: objectCreate
12341233
, crossover: crossover

0 commit comments

Comments
 (0)