Skip to main content

M'sieur Toph'

Member since Feb 20, 2015

Recent Blog Comments By M'sieur Toph'

  • Creating jqLite Plugins In AngularJS

    Posted on Jul 23, 2015 at 8:01 AM

    @Ben, Hi Ben, you are right. In this simple case, it does not change anything. In the past, I have been in trouble with manually updating the prototypes. By this time, I have red it was best pratice to use defineProperty() over manually updating the prototype ... As far as I can tell, definePrope... read more »

  • Creating jqLite Plugins In AngularJS

    Posted on Feb 20, 2015 at 9:58 AM

    I mean "using <CommonClass>.prototype.myMethod = function(){} was evil..."... read more »

  • Creating jqLite Plugins In AngularJS

    Posted on Feb 20, 2015 at 9:50 AM

    Nice post. Thanks. I thought adding method using <CommonClass>.prototype was evil ... I would use Object.defineProperty() instead, no ? Something like that : Object.defineProperty(jqLite.prototype, 'myMethod', function(){ return { value: function(){}, enumerable: false, ... ... read more »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel