Skip to content

Instantly share code, notes, and snippets.

Break time

redgoose redgoose-dev

Break time
Block or report user

Report or block redgoose-dev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
yairEO / events.namespace.js
Last active Jan 22, 2020
Event Handler Namespace in Vanilla JavaScript
View events.namespace.js
var events = (function(){
function addRemove(op, events, cb){
if( cb )
events.split(' ').forEach(name => {
var ev = name.split('.')[0]
cb = cb || this._eventsNS[name]
this[op + 'EventListener'].call(this, ev, cb)
if(op == 'add')
jackfuchs /
Last active Aug 26, 2019
Extends the object to CSS Properties
* To verify that a CSS property is supported
* (or any of its browser-specific implementations)
* @param p css property name
* @param rp optional, if set to true, the css property name will be returned
* instead of a boolean support indicator
* @return {mixed}
You can’t perform that action at this time.