Skip to content

Instantly share code, notes, and snippets.

@kajyr
kajyr / MutationObserver polyfill
Last active August 29, 2015 14:01
A small polyfill to handle mutation observer subtree modifications events
return if window.MutationObserver?
class MutationObserver
constructor: (callBack) ->
@callBack = callBack
observe: (element, options) ->
@element = element
@interval = setInterval () =>
@kajyr
kajyr / 0_reuse_code.js
Created November 26, 2013 15:03
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console