This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```sh | |
$ grunt | |
Running "concat:dist" (concat) task | |
File dist/jquery-migrate.js created. | |
Running "uglify:all" (uglify) task | |
>> 1 file created. | |
Running "jshint:dist" (jshint) task | |
>> 1 file lint free. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* jQuery JavaScript Library v3.0.0-pre | |
* http://jquery.com/ | |
* | |
* Includes Sizzle.js | |
* http://sizzlejs.com/ | |
* | |
* Copyright jQuery Foundation and other contributors | |
* Released under the MIT license | |
* http://jquery.org/license |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"type": "FunctionDeclaration", | |
"start": 0, | |
"end": 34, | |
"loc": { | |
"start": { | |
"line": 1, | |
"column": 0 | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In previous versions of jQuery, on every for iteration new div was created in jQuery.clean, | |
// now, on every iteration only one div is used, which created some problems – | |
// Illustration of WebKit bug | |
div = document.createElement("div"); | |
div.innerHTML = "1"; | |
nodes = jQuery.merge( [], div.childNodes ); | |
div.innerHTML = "2"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// suppose we have this in css | |
// .hidden { display: none; } | |
// .inline { display: inline; } | |
// then in javascrpit | |
$('<div class="hidden"/>').css("display"); | |
// for FF – "none" | |
// for IE – "block" | |
// For Chrome, Opera – "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// We can't copy stuff in clipboard in Chrome, Safari and Firefox (Opera) | |
// Maybe one day this tickets will be resolved – | |
// https://bugzilla.mozilla.org/show_bug.cgi?id=407983 | |
// https://bugs.webkit.org/show_bug.cgi?id=17645 | |
// But if they will, we still can only copy text to clipboard only during clipboard events | |
// We might get around this, it's not a production code, just... | |
var clipboard = function() {}; | |
// If we have firebug installed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fragment, div, clonedNode, firstP, secondP, clonedP, dbi, clonedBdi, | |
node = document.createElement("div"); | |
// true in all browsers | |
console.log( node.parentNode == null ); | |
// but after | |
node.getElementsByTagName(); | |
// true only in ie < 9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
configure: ... | |
getOptionName: ... | |
check: ... | |
format: /* global function for whitespace imported through `require` */ | |
// or | |
format: /* string option "whitespace" which would signify what kind of manipulation should be done */ | |
// or | |
format: /* "complicated" format function for hard to do rules */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Deprecate and remove: | |
/* | |
* (require | disallow)SpacesInFunctionExpression | |
* (require | disallow)requireSpacesInFunction | |
*/ | |
{ | |
options: { | |
additionalRules: [], | |
plugins: [], | |
fileExtensions: [], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
codeBlocks: { | |
curlyBraces: { | |
operators: true || [], | |
expect: [ "return", "break" ] | |
}, | |
newlineBefore: { | |
statements: true, | |
expect: [ "for..of", "for" ] |
NewerOlder