Permalink
Browse files

Merge pull request #727 from treyhunner/editorconfig/whitespace-fixes

Trim trailing whitespace and insert final newlines
  • Loading branch information...
2 parents d3470df + a43a1c9 commit 8c385d65151781b388c094882d1befacc48b9782 @paulirish paulirish committed Oct 30, 2012
Showing with 226 additions and 226 deletions.
  1. +1 −1 feature-detects/battery-api.js
  2. +2 −2 feature-detects/contextmenu.js
  3. +1 −1 feature-detects/cors.js
  4. +3 −3 feature-detects/css-backgroundposition-xy.js
  5. +4 −4 feature-detects/css-backgroundrepeat.js
  6. +2 −2 feature-detects/css-backgroundsizecover.js
  7. +1 −1 feature-detects/css-displayrunin.js
  8. +1 −1 feature-detects/css-displaytable.js
  9. +1 −1 feature-detects/css-filters.js
  10. +1 −1 feature-detects/css-mediaqueries.js
  11. +1 −1 feature-detects/css-objectfit.js
  12. +1 −1 feature-detects/css-subpixelfont.js
  13. +1 −1 feature-detects/css-supports.js
  14. +3 −3 feature-detects/css-vhunit.js
  15. +1 −1 feature-detects/css-vmaxunit.js
  16. +1 −1 feature-detects/css-vwunit.js
  17. +1 −1 feature-detects/custom-protocol-handler.js
  18. +2 −2 feature-detects/dataview-api.js
  19. +1 −1 feature-detects/dom-microdata.js
  20. +1 −1 feature-detects/elem-details.js
  21. +1 −1 feature-detects/emoji.js
  22. +2 −2 feature-detects/es5-strictmode.js
  23. +1 −1 feature-detects/file-filesystem.js
  24. +2 −2 feature-detects/forms-formattribute.js
  25. +1 −1 feature-detects/forms-placeholder.js
  26. +4 −4 feature-detects/forms-speechinput.js
  27. +5 −5 feature-detects/forms-validation.js
  28. +1 −1 feature-detects/getusermedia.js
  29. +1 −1 feature-detects/img-apng.js
  30. +1 −1 feature-detects/img-webp-lossless.js
  31. +2 −2 feature-detects/img-webp.js
  32. +3 −3 feature-detects/mathml.js
  33. +3 −3 feature-detects/notification.js
  34. +1 −1 feature-detects/performance.js
  35. +2 −2 feature-detects/requestanimationframe.js
  36. +1 −1 feature-detects/script-async.js
  37. +1 −1 feature-detects/script-defer.js
  38. +9 −9 feature-detects/unicode.js
  39. +2 −2 feature-detects/url-data-uri.js
  40. +1 −1 feature-detects/vibration.js
  41. +1 −1 feature-detects/webgl-extensions.js
  42. +1 −1 feature-detects/workers-sharedworkers.js
  43. +7 −7 test/basic.html
  44. +41 −41 test/caniuse.html
  45. +1 −1 test/caniuse_files/form_validation.html
  46. +1 −1 test/caniuse_files/jquery.min.js
  47. +1 −1 test/caniuse_files/mathml.html
  48. +1 −1 test/caniuse_files/modernizr-1.7.min.js
  49. +5 −5 test/caniuse_files/pushstate.html
  50. +1 −1 test/caniuse_files/style.css
  51. +2 −2 test/caniuse_files/xhtml.html
  52. +7 −7 test/js/basic.html
  53. +32 −32 test/js/lib/detect-global.js
  54. +43 −43 test/js/lib/jquery-1.7b2.js
  55. +1 −1 test/js/lib/jsonselect.js
  56. +6 −6 test/js/lib/uaparser.js
  57. +1 −1 test/qunit/run-qunit.js
@@ -5,4 +5,4 @@
Modernizr.addTest('battery',
!!Modernizr.prefixed('battery', navigator)
-);
+);
@@ -1,8 +1,8 @@
// http://www.w3.org/TR/html5/interactive-elements.html#context-menus
// Demo at http://thewebrocks.com/demos/context-menu/
Modernizr.addTest(
- 'contextmenu',
- ('contextMenu' in document.documentElement && 'HTMLMenuItemElement' in window)
+ 'contextmenu',
+ ('contextMenu' in document.documentElement && 'HTMLMenuItemElement' in window)
);
View
@@ -1,3 +1,3 @@
// cors
// By Theodoor van Donge
-Modernizr.addTest('cors', !!(window.XMLHttpRequest && 'withCredentials' in new XMLHttpRequest()));
+Modernizr.addTest('cors', !!(window.XMLHttpRequest && 'withCredentials' in new XMLHttpRequest()));
@@ -1,8 +1,8 @@
/*
Allan Lei https://github.com/allanlei
-
+
Check adapted from https://github.com/brandonaaron/jquery-cssHooks/blob/master/bgpos.js
-
+
Test: http://jsfiddle.net/allanlei/R8AYS/
*/
Modernizr.addTest('bgpositionxy', function() {
@@ -12,4 +12,4 @@ Modernizr.addTest('bgpositionxy', function() {
var ySupport = (cssStyleDeclaration.backgroundPositionY == '5px') || (cssStyleDeclaration['background-position-y'] == '5px');
return xSupport && ySupport;
});
-});
+});
@@ -1,7 +1,7 @@
// developer.mozilla.org/en/CSS/background-repeat
// test page: jsbin.com/uzesun/
-// http://jsfiddle.net/ryanseddon/yMLTQ/6/
+// http://jsfiddle.net/ryanseddon/yMLTQ/6/
(function(){
@@ -11,17 +11,17 @@ function getBgRepeatValue(elem){
getComputedStyle(elem, null).getPropertyValue('background') :
elem.currentStyle['background']);
}
-
-Modernizr.testStyles(' #modernizr { background-repeat: round; } ', function(elem, rule){
+
+Modernizr.testStyles(' #modernizr { background-repeat: round; } ', function(elem, rule){
Modernizr.addTest('bgrepeatround', getBgRepeatValue(elem) == 'round');
});
-Modernizr.testStyles(' #modernizr { background-repeat: space; } ', function(elem, rule){
+Modernizr.testStyles(' #modernizr { background-repeat: space; } ', function(elem, rule){
Modernizr.addTest('bgrepeatspace', getBgRepeatValue(elem) == 'space');
@@ -5,6 +5,6 @@ Modernizr.testStyles( '#modernizr{background-size:cover}', function( elem ) {
var style = window.getComputedStyle ?
window.getComputedStyle( elem, null )
: elem.currentStyle;
-
+
Modernizr.addTest( 'bgsizecover', style.backgroundSize == 'cover' );
-});
+});
@@ -6,7 +6,7 @@
-Modernizr.testStyles(' #modernizr { display: run-in; } ', function(elem, rule){
+Modernizr.testStyles(' #modernizr { display: run-in; } ', function(elem, rule){
var ret = (window.getComputedStyle ?
getComputedStyle(elem, null).getPropertyValue('display') :
@@ -7,7 +7,7 @@
Modernizr.addTest("display-table", function() {
var ret;
-
+
Modernizr.testStyles("#modernizr{display: table; direction: ltr}#modernizr div{display: table-cell; padding: 10px}", function(elem) {
var child = elem.children;
@@ -4,4 +4,4 @@ Modernizr.addTest('cssfilters', function() {
var el = document.createElement('div');
el.style.cssText = Modernizr._prefixes.join('filter' + ':blur(2px); ');
return !!el.style.length && ((document.documentMode === undefined || document.documentMode > 9));
-});
+});
@@ -1,3 +1,3 @@
-Modernizr.addTest('mediaqueries', Modernizr.mq('only all'));
+Modernizr.addTest('mediaqueries', Modernizr.mq('only all'));
@@ -3,4 +3,4 @@
Modernizr.addTest('object-fit',
!!Modernizr.prefixed('objectFit')
-);
+);
@@ -7,7 +7,7 @@
Modernizr.addTest('subpixelfont', function() {
var bool,
styles = "#modernizr{position: absolute; top: -10em; visibility:hidden; font: normal 10px arial;}#subpixel{float: left; font-size: 33.3333%;}";
-
+
// see https://github.com/Modernizr/Modernizr/blob/master/modernizr.js#L97
Modernizr.testStyles(styles, function(elem) {
var subpixel = elem.firstChild;
@@ -3,4 +3,4 @@
// Relies on the fact that a browser vendor should expose the CSSSupportsRule interface
// http://dev.w3.org/csswg/css3-conditional/#the-csssupportsrule-interface
-Modernizr.addTest("supports","CSSSupportsRule" in window);
+Modernizr.addTest("supports","CSSSupportsRule" in window);
@@ -2,13 +2,13 @@
// Similar to http://jsfiddle.net/FWeinb/etnYC/
Modernizr.addTest('cssvhunit', function() {
var bool;
- Modernizr.testStyles("#modernizr { height: 50vh; }", function(elem, rule) {
+ Modernizr.testStyles("#modernizr { height: 50vh; }", function(elem, rule) {
var height = parseInt(window.innerHeight/2,10),
compStyle = parseInt((window.getComputedStyle ?
getComputedStyle(elem, null) :
elem.currentStyle)["height"],10);
-
+
bool= (compStyle == height);
});
return bool;
-});
+});
@@ -11,4 +11,4 @@ Modernizr.addTest('cssvmaxunit', function(){
bool = ( parseInt(Math.max(one_vw, one_vh)*50,10) == compWidth );
});
return bool;
-});
+});
@@ -7,7 +7,7 @@ Modernizr.addTest('cssvwunit', function(){
compStyle = parseInt((window.getComputedStyle ?
getComputedStyle(elem, null) :
elem.currentStyle)["width"],10);
-
+
bool= (compStyle == width);
});
return bool;
@@ -1,7 +1,7 @@
/*
Custom protocol handler support
http://developers.whatwg.org/timers.html#custom-handlers
-
+
Added by @benschwarz
*/
@@ -1,4 +1,4 @@
-// DataView
+// DataView
// https://developer.mozilla.org/en/JavaScript_typed_arrays/DataView
// By Addy Osmani
-Modernizr.addTest('dataview', (typeof DataView !== 'undefined' && 'getFloat64' in DataView.prototype));
+Modernizr.addTest('dataview', (typeof DataView !== 'undefined' && 'getFloat64' in DataView.prototype));
@@ -1,4 +1,4 @@
// Microdata support
// http://www.w3.org/TR/html5/microdata.html
// By Addy Osmani
-Modernizr.addTest('microdata', !!(document['getItems']));
+Modernizr.addTest('microdata', !!(document['getItems']));
@@ -22,4 +22,4 @@ Modernizr.addTest('details', function() {
root.removeChild(el);
fake && root.parentNode.removeChild(root);
return diff;
-});
+});
View
@@ -8,4 +8,4 @@ Modernizr.addTest('emoji', function() {
ctx.font = '32px Arial';
ctx.fillText('\ud83d\ude03', 0, 0); // "smiling face with open mouth" emoji
return ctx.getImageData(16, 16, 1, 1).data[0] !== 0;
-});
+});
@@ -3,5 +3,5 @@
// test by @kangax
Modernizr.addTest('strictmode', function(){
- return (function(){ "use strict"; return !this; })();
-});
+ return (function(){ "use strict"; return !this; })();
+});
@@ -6,4 +6,4 @@
//
// By Eric Bidelman (@ebidel)
-Modernizr.addTest('filesystem', !!Modernizr.prefixed('requestFileSystem', window));
+Modernizr.addTest('filesystem', !!Modernizr.prefixed('requestFileSystem', window));
@@ -20,7 +20,7 @@ Modernizr.addTest("formattribute", function() {
input.setAttributeNode(attr);
}
}
-
+
div.appendChild(form);
div.appendChild(input);
@@ -30,4 +30,4 @@ Modernizr.addTest("formattribute", function() {
div.parentNode.removeChild(div);
return bool;
-});
+});
@@ -3,7 +3,7 @@
Modernizr.addTest('placeholder', function(){
- return !!( 'placeholder' in ( Modernizr.input || document.createElement('input') ) &&
+ return !!( 'placeholder' in ( Modernizr.input || document.createElement('input') ) &&
'placeholder' in ( Modernizr.textarea || document.createElement('textarea') )
);
@@ -2,7 +2,7 @@
// by @alrra
-// `webkitSpeech` in elem
+// `webkitSpeech` in elem
// doesn`t work correctly in all versions of Chromium based browsers.
// It can return false even if they have support for speech i.imgur.com/2Y40n.png
// Testing with 'onwebkitspeechchange' seems to fix this problem
@@ -14,6 +14,6 @@
// FIXME: add support for detecting the new spec'd behavior
Modernizr.addTest('speechinput', function(){
- var elem = document.createElement('input');
- return 'speech' in elem || 'onwebkitspeechchange' in elem;
-});
+ var elem = document.createElement('input');
+ return 'speech' in elem || 'onwebkitspeechchange' in elem;
+});
@@ -1,6 +1,6 @@
// This implementation only tests support for interactive form validation.
// To check validation for a specific type or a specific other constraint,
-// the test can be combined:
+// the test can be combined:
// - Modernizr.inputtypes.numer && Modernizr.formvalidation (browser supports rangeOverflow, typeMismatch etc. for type=number)
// - Modernizr.input.required && Modernizr.formvalidation (browser supports valueMissing)
//
@@ -36,13 +36,13 @@ Modernizr.addTest('formvalidation', function(){
e.stopPropagation();
};
- // Calling form.submit() doesn't trigger interactive validation,
+ // Calling form.submit() doesn't trigger interactive validation,
// use a submit button instead
//older opera browsers need a name attribute
form.innerHTML = '<input name="modTest" required><button></button>';
// FF4 doesn't trigger "invalid" event if form is not in the DOM tree
- // Chrome throws error if invalid input is not visible when submitting
+ // Chrome throws error if invalid input is not visible when submitting
form.style.position = 'absolute';
form.style.top = '-99999em';
@@ -57,7 +57,7 @@ Modernizr.addTest('formvalidation', function(){
body.appendChild(form);
- input = form.getElementsByTagName('input')[0];
+ input = form.getElementsByTagName('input')[0];
// Record whether "invalid" event is fired
input.oninvalid = function(e) {
@@ -80,4 +80,4 @@ Modernizr.addTest('formvalidation', function(){
});
-})(document, window.Modernizr);
+})(document, window.Modernizr);
@@ -2,4 +2,4 @@
// http://www.whatwg.org/specs/web-apps/current-work/multipage/video-conferencing-and-peer-to-peer-communication.html
// By Eric Bidelman
-Modernizr.addTest('getusermedia', !!Modernizr.prefixed('getUserMedia', navigator));
+Modernizr.addTest('getusermedia', !!Modernizr.prefixed('getUserMedia', navigator));
@@ -4,7 +4,7 @@
(function () {
if (!Modernizr.canvas) return false;
-
+
var image = new Image(),
canvas = document.createElement('canvas'),
ctx = canvas.getContext('2d');
@@ -10,7 +10,7 @@
image.onerror = function() {
Modernizr.addTest('webp-lossless', false);
- };
+ };
image.onload = function() {
Modernizr.addTest('webp-lossless', function() { return image.width == 1; });
};
@@ -10,11 +10,11 @@
image.onerror = function() {
Modernizr.addTest('webp', false);
- };
+ };
image.onload = function() {
Modernizr.addTest('webp', function() { return image.width == 1; });
};
image.src = 'data:image/webp;base64,UklGRiwAAABXRUJQVlA4ICAAAAAUAgCdASoBAAEAL/3+/3+CAB/AAAFzrNsAAP5QAAAAAA==';
-}());
+}());
@@ -1,5 +1,5 @@
// MathML
-// http://www.w3.org/Math/
+// http://www.w3.org/Math/
// By Addy Osmani
// Based on work by Davide (@dpvc) and David (@davidcarlisle)
// in https://github.com/mathjax/MathJax/issues/182
@@ -9,7 +9,7 @@ Modernizr.addTest('mathml', function(){
if ( document.createElementNS ) {
var ns = "http://www.w3.org/1998/Math/MathML",
div = document.createElement("div");
- div.style.position = "absolute";
+ div.style.position = "absolute";
var mfrac = div.appendChild(document.createElementNS(ns,"math"))
.appendChild(document.createElementNS(ns,"mfrac"));
mfrac.appendChild(document.createElementNS(ns,"mi"))
@@ -20,4 +20,4 @@ Modernizr.addTest('mathml', function(){
hasMathML = div.offsetHeight > div.offsetWidth;
}
return hasMathML;
-});
+});
@@ -1,10 +1,10 @@
// Notifications
// By Theodoor van Donge
-// window.webkitNotifications is only used by Chrome
+// window.webkitNotifications is only used by Chrome
// http://www.html5rocks.com/en/tutorials/notifications/quick/
-// window.Notification only exist in the draft specs
+// window.Notification only exist in the draft specs
// http://dev.w3.org/2006/webapi/WebNotifications/publish/Notifications.html#idl-if-Notification
-Modernizr.addTest('notification', !!Modernizr.prefixed('Notifications', window));
+Modernizr.addTest('notification', !!Modernizr.prefixed('Notifications', window));
@@ -2,4 +2,4 @@
// https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/NavigationTiming/
// http://www.html5rocks.com/en/tutorials/webperformance/basics/
// By Scott Murphy (uxder)
-Modernizr.addTest('performance', !!Modernizr.prefixed('performance', window));
+Modernizr.addTest('performance', !!Modernizr.prefixed('performance', window));
Oops, something went wrong.

0 comments on commit 8c385d6

Please sign in to comment.