M'sieur Toph'
Member since Feb 20, 2015
- Profile: /members/12542-msieur-toph.htm
- Comments: 3
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 »