markgoodyear/headhesive.js — pull request #7 by JonMcPartland (2014-06-12 18:42:39+00:00)
Title: Fix console error

If the Headhesive constructor is called on a node that doesn't exist on the page, a console error is thrown, because cloneNode is then called against `null`. This change suggests checking that `elem` is set before calling the `init` func.