simonkcleung
simonkcleung
Should it be a feature that saves the chains ......and reuse it. It is achievable by Function.bind()?
If you focus on canvas, the "re" function is useful (for lazy persons). I add a line in the chainable function: chainable: function(method) { return function() { var ret =...
I see the problem that adding a "re" property to the object may not be useful, especially the DOM interfaces. I have an idea actually I used. It is a...
Lea, Take a look at line 58 of prefixfree.dynamic-dom.js proto = CSSStyleDeclaration.prototype; .....then if(!(prefixed in proto)) {....} It is not working at all. You should use a style object, e.g....
Line 58, Line 63 Checking (prefixed in proto) is not correct because proto is not a list of CSS properties. The prototype of style "proto" in Chrome/Edge: document.documentElement.style.constructor = CSSStyleDeclaration(){}...
Will it be still performant if there is only one event listener?
Here is my suggestion: ``` js EventEmitter.prototype.emit = function emit(type, ...args) { let doError = (type === 'error'); const events = this._events; if (doError && events?.[kErrorMonitor] !== undefined) this.emit(kErrorMonitor, ...args);...
Sorry I am not going to open one because I am not familiar with it.