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
yairEO / events.namespace.js
Last active Oct 3, 2019
Event Handler Namespace in Vanilla JavaScript
View events.namespace.js
var events = {
on(event, cb, opts){
if( !this.namespaces ) // save the namespaces on the DOM element itself
this.namespaces = {};
this.namespaces[event] = cb;
var options = opts || false;
this.addEventListener( event.split('.')[0], cb, options );
return this;
@jackfuchs
jackfuchs / jquery.support.cssproperty.js
Last active Aug 26, 2019
Extends the jQuery.support object to CSS Properties
View jquery.support.cssproperty.js
/**
* jQuery.support.cssProperty
* 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.