JavaScript
JavaScript (JS) is a lightweight interpreted or JIT-compiled programming language with first-class functions. While it is most well-known as the scripting language for Web pages, many non-browser environments also use it, such as Node.js, Apache CouchDB and Adobe Acrobat. JavaScript is a prototype-based, multi-paradigm, dynamic language, supporting object-oriented, imperative, and declarative (e.g. functional programming) styles.
Here are 135,549 public repositories matching this topic...
What problem does this feature solve?
Currently mouse button modifiers, introduced in #4866, are left, middle, right for $event.button values 0, 1, 2 correspondingly. But that is only correct for the "default" right-handed layout. In the left-handed mode (when the buttons are switched in the OS) the right button has 0 value and the left button - 2. Besides, also some right-h
As discussed in facebook/react#3207 (comment), a complementary improvement is to turn on a mutation observer in dev, and warn of someone other than React modifies the DOM and/or if dom nodes appear without a data-reactid, thus indicating an extension or some other script is doing fancy magic.
Is there a reason why the text selection isn't disabled on the .checkbox label element? It's kind of annoying when you're clicking fast on the element, see the image:
Adding these styles fixes the issue:
.checkbox label{
-webkit-user-select: none;
This section https://github.com/getify/You-Dont-Know-JS/blob/master/types%20&%20grammar/ch3.md#prototypes-as-defaults and the one before it, should be updated with recent ES6 changes to the native prototypes. See: https://esdiscuss.org/topic/array-prototype-change-was-tostringtag-spoofing-for-null-and-undefined
Style guide should advise wrapping function arguments that go over maximum line length.
function someVeryLongFunctionName(someVeryLongArgumentName1, someVeryLongArgumentName2, someVeryLongArgumentName3) {
// Function body
}or:
function myFunction(someArg1, someArg2, someArg3, someArg4, someArg5, someArg6, someArg7, someArg8) {
// Function body
}Wrapped:
funcindex.html
<webview src="file:///embedded.html"></webview>embedded.html
<h1>github</h1>
<webview src="http://github.com"></webview>Would it be possible to have index.html render the header and webview of embedded.html? I don't seem to currently be able to do this.
I had to do a lot of trial and error, until I found out that adding "responseType" as "arraybuffer" would do the trick.
Hi,
I found a (not so) corner-case issue with HTTP Server request.setTimeout(n, cb):
According to the documentation if a listener was registered to the timeout event on any of server, request, response, then the http module doesn't call socket.destroy(), and it's up to the listener to do it if nee
Huge and nice collection and also getting very much appreciated from the community.
It would be great if somebody can translate into English then it will be reaching out to global.
I think it makes more sense to return an empty array
// invalid input return null or throw an error
if (!setA || !setB) {
return null;
}
if (!setA.length || !setB.length) {
return [];
}
// or do nothing since the for loop will not trigger anyway
Redundant condition
BohekPass renderes to its own depth buffer here:
https://github.com/mrdoob/three.js/blob/master/examples/js/postprocessing/BokehPass.js#L42
https://github.com/mrdoob/three.js/blob/master/examples/js/postprocessing/BokehPass.js#L79
I would suggest that we allow for it to share depth buffers across multiple shaders, like SSAO does:
https://github.com/mrdoob/three.js/blob/master/examples/js/shader
I'm submitting a...
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
Description
So our function arrayToHtmlList is in a pretty bad space and could use an update. We already had some discussion over at #675 but I wanted to move the update discussion over to an issue for more visibility.
Current problem:
It uses an awkward query selector instead of the `document.prototype.getElementBy
Problem description
After initial open of menu, first item remains highlighted even after hovering off.
Steps to reproduce
next branch, menus demo http://localhost:3000/#/component-demos/menus
- click to open
- hover to a lower item
Versions
next branch a38068f90c28ee240f0622d40a87f6d888dd74e2
- Browser: Mac Chrome 52.0.2743.116
- Browser: Mac Firefox 48.0.2
- Browser: Mac S
The regular expression in the exclude property of a loader configuration can be used to exclude file paths, but the paths provided to the regular expressions are operating system dependent, e.g. on Windows the paths are in the form of "a\b\c" and on Unix-based operating systems "a/b/c". This makes writing correct regular expressions more difficult (and especially to test them).
My proposal is t
When auto indenting JS comment blocks,
/**
*
*/becomes:
/**
*
*/Since the first version is a pretty common comment block pattern (used in JSDoc and YUIDoc and similar projects), it'd be great if the auto indent feature could support this indentation instead of messing with it.
we have conventional-changelog or conventional-github-releaser (there are also grunt/gulp tasks) to automate the process of writing the changelog. As you are using formatted commit messages so the logs can be generated well according to the parts of the message. We use handlebars for te
Hi all,
I had some problem with long tooltips in doughnut chart.
Which could be googled by following url
http://stackoverflow.com/questions/28476159/chart-js-pie-tooltip-getting-cut
Eventually, I solved this issue with following option code using callbacks.
Can we make this configuration as parameters? Currently chart.js support responsive
and seem to detect width of context.
It seems to be
versions:
"@storybook/addon-actions": "^3.1.8",
"@storybook/react": "^3.1.8",
I'm trying to use Storybook with an electron app. The components are vanilla JS, but some of them import modules from electron
In my app, I configure webpack to target: 'electron-renderer', and this works fine
However, in storybook, doing so results in the error below.
Has anyone confi
A professional front-end template for building fast, robust, and adaptable web apps or sites.
-
Updated
Jan 2, 2020 - JavaScript
Existing Component
Yes
Component Name
Select
Description
When allow-create is enabled, it should have a create-method attribute to custom create method.
Ex: I want to call an API to create option on server.
const doc2 = {
"source": {
"name": "foo",
"event": "bar",
"data": {
"businessUnit": {
"name": "baz"
}
}
}
};
const pick1 = require('lodash.pick');
const pick2 = require('lodash/pick');
console.log('lodash.pick:', pick1(doc2, [
'source.name',
'source.event',
'source.data.businessUnit.name'
]));
console.log('lodash/Meteor: 1.8.2
OS: Ubuntu 19.04
Browser: Chrome 76, Firefox 71
reproduction repo: https://github.com/ni-ko-o-kin/meteor-loggingin-subscriptions
The expected behavior:
When a user logs in (with username: 'username' and password: 'password' in the reproduction-repo) Meteor.loggingIn() should return true and after it is finished the subscriptions should start to load.
In the reproduc
Ionic version: (check one with "x")
(For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[ ] 3.x
[X ] 4.x
I'm submitting a ... (check one with "x")
[ ] bug report
[X ] feature request
Current behavior:
With the standard <select> HTML element, if the element has keyboard focus a user can either use the arrow keys to change betwee
:white_check_mark: The largest Node.js best practices list (December 2019)
-
Updated
Jan 2, 2020 - JavaScript
Do you want to request a feature or report a bug?
Bug.
What is the current behavior?
In our Sonartype Nexus private npm repository we somehow managed to remove the latest tag from a module:
$ yarn info @scope/package
yarn info v1.3.2
{ 'dist-tags':
{ foobar: '0.0.4',
beta: '0.14.0-1' },
versions:
[ '0.0.4',
'0.0.5',
[...]
'0.14.4' ],
name
🗂 The perfect Front-End Checklist for modern websites and meticulous developers
-
Updated
Jan 2, 2020 - JavaScript
When using
Link to Pen: http://codepen.io/HiroAgustin/pen/qdbNbN
Mathias Bynens has a great article on it: https://mathiasbynens.be/notes/javascript-unicode#counting-symbols.
Created by Brendan Eich
Released December 4, 1995
- Website
- developer.mozilla.org/en-US/docs/Web/JavaScript
- Wikipedia
- Wikipedia

I would like to propose freeCodeCamp's CSS Style guide to improve overall maintainability of the codebase. As the FreeCodeCamp has a lot of contributors, and everyone writes the CSS in a different way. And it is hard to keep of track of different ways of writing CSS.
Initial Recommendations:
Comments