Comments for JavaScript, JavaScript… https://javascriptweblog.wordpress.com by Angus Croll Wed, 06 Apr 2016 19:07:39 +0000 hourly 1 http://wordpress.com/ Comment on Understanding JavaScript Prototypes. by Anonymous https://javascriptweblog.wordpress.com/2010/06/07/understanding-javascript-prototypes/#comment-94080 Wed, 06 Apr 2016 19:07:39 +0000 http://javascriptweblog.wordpress.com/?p=645#comment-94080 It should be more clearly stated in the beginning of the text how the structure of a construction function and an object looks like, e.g. an object has a.__proto__ whereas the function A

]]>
Comment on Of Classes and Arrow Functions (a cautionary tale) by Tony Brown https://javascriptweblog.wordpress.com/2015/11/02/of-classes-and-arrow-functions-a-cautionary-tale/#comment-91505 Thu, 12 Nov 2015 14:31:51 +0000 http://javascriptweblog.wordpress.com/?p=3478#comment-91505 Great post Angus!

]]>
Comment on Of Classes and Arrow Functions (a cautionary tale) by Angus Croll https://javascriptweblog.wordpress.com/2015/11/02/of-classes-and-arrow-functions-a-cautionary-tale/#comment-91304 Thu, 05 Nov 2015 03:12:28 +0000 http://javascriptweblog.wordpress.com/?p=3478#comment-91304 In reply to MrOrz.

Not seeing your point. Whatever is on the right hand side of the class property should be on the right hand side of the “in effect” section.

]]>
Comment on Of Classes and Arrow Functions (a cautionary tale) by MrOrz https://javascriptweblog.wordpress.com/2015/11/02/of-classes-and-arrow-functions-a-cautionary-tale/#comment-91298 Thu, 05 Nov 2015 00:50:50 +0000 http://javascriptweblog.wordpress.com/?p=3478#comment-91298 In the code example that comes right after the sentence “In effect, class properties work like this”, the class properties should be normal functions instead of arrow functions. Otherwise, we would not need to bind() in the first code example in the section “Arrow functions and classes”.

]]>
Comment on Of Classes and Arrow Functions (a cautionary tale) by Angus Croll https://javascriptweblog.wordpress.com/2015/11/02/of-classes-and-arrow-functions-a-cautionary-tale/#comment-91230 Mon, 02 Nov 2015 15:49:15 +0000 http://javascriptweblog.wordpress.com/?p=3478#comment-91230 In reply to martinrinehart.

Should be there now

]]>
Comment on Of Classes and Arrow Functions (a cautionary tale) by martinrinehart https://javascriptweblog.wordpress.com/2015/11/02/of-classes-and-arrow-functions-a-cautionary-tale/#comment-91222 Mon, 02 Nov 2015 10:14:49 +0000 http://javascriptweblog.wordpress.com/?p=3478#comment-91222 Page not found.

]]>
Comment on JavaScript Fat City by Arrow Functions “gotcha” | Web and more https://javascriptweblog.wordpress.com/2012/04/09/javascript-fat-city/#comment-88702 Tue, 14 Jul 2015 21:31:49 +0000 http://javascriptweblog.wordpress.com/?p=3147#comment-88702 […] Learn more about fat-arrows: http://toddmotto.com/es6-arrow-functions-syntaxes-and-lexical-scoping/ http://www.nczonline.net/blog/2013/09/10/understanding-ecmascript-6-arrow-functions/ http://javascriptplayground.com/blog/2014/04/real-life-es6-arrow-fn/ http://www.2ality.com/2012/04/arrow-functions.html https://javascriptweblog.wordpress.com/2012/04/09/javascript-fat-city/ […]

]]>
Comment on JavaScript Fat City by greim https://javascriptweblog.wordpress.com/2012/04/09/javascript-fat-city/#comment-87946 Fri, 05 Jun 2015 03:07:06 +0000 http://javascriptweblog.wordpress.com/?p=3147#comment-87946 > if a fat arrow is used to define a method in an object literal it will continue to be bound to that object even when invoked from a borrowing object

Wouldn’t it be bound to the `this` of the same scope the object literal was created in, rather than being bound to the object literal itself? Or did I miss something with the latest proposal?

]]>
Comment on Extending JavaScript Natives by srikanth ganta https://javascriptweblog.wordpress.com/2011/12/05/extending-javascript-natives/#comment-87256 Wed, 06 May 2015 12:09:53 +0000 http://javascriptweblog.wordpress.com/?p=3025#comment-87256 Reblogged this on Srikanth's Blog.

]]>
Comment on Fixing the JavaScript typeof operator by Using and Abusing UnderscoreJs | Zsolt Nagy https://javascriptweblog.wordpress.com/2011/08/08/fixing-the-javascript-typeof-operator/#comment-87107 Tue, 28 Apr 2015 21:35:06 +0000 http://javascriptweblog.wordpress.com/?p=2838#comment-87107 […] Fixing the typeof operator has been a concern for a while. Underscore gives you a more consistent approach which does not let you get away with checking undeclared types anymore. […]

]]>