For a project a developer sent us a .js file with code similar to this:  var myList = [1,2,3]; var a,b,c;  [a,b,c] = myList;   It works in Opera 10.30, Firefox 3.6.x but it's not ok for Opera 10.60 and Chrome.  It's just curiosity, do you h...
I'm pretty familiar I guess with both Zend and PEAR PHP coding standards, and from my previous two employers no TAB characters were allowed in the code base, claiming it might be misinterpreted by the build script or something (something like th...
From searching SO, this question was already asked, almost a year ago now.  So now with the new FF, Opera, IE, is it finally time to start developing sites with HTML5 or is it still a little premature and will cause compatibility issues?   Is using...
It is mentionned on the ECMAScript standard here that :     ... These features are not considered part of the core ECMAScript   language. Programmers should not use or assume the existence of these   features and behaviours when writing new ECMAScrip...
Because of a "religious war" at my current work place I have decided to research the history of the ASI feature of javascript.  But I am having trouble finding out why and when ASI was introduced to javascript.  It seems like it has been a fe...
I have the following function in JavaScript and when running it through JSLint, it yelled at me, as I call it.  function getPos(event, element) {     var x = event.clientX,         y = event.clientY,         currentElement = element;      do {...
Having this JS code:  document.getElementById('e1').addEventListener('click', function(){alert('1');}, false); document.getElementById('e2').addEventListener('click', function(){alert('2');}, false); do...
Or do they and it's just not in the source? I'd really like to get something that will stop js-doc-toolkit from freaking out each time it parses jQuery. It also means I can't properly document any code using jQuery as a dependency withou...
I'm getting acquainted with AngularJS, and I've noticed that it is possible to make your template code HTML5-compliant by prefixing your directives with data-. (For example, data-ng-repeat="..." instead of ng-repeat="...".)  M...
I'm very surpised that https://fetch.spec.whatwg.org/ standard doesn't allow to set cookie from server. I expected New Fetch will be awesome alternative of XHR thing, but...   Does anybody knows any official answer for it? Thanks in advance!...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.