ejci/favico.js — pull request #53 by PascalPflaum (2014-11-04 17:11:40+00:00)
Title: add options.element to forward a dom element to favico.js

Hey, I have the scenario, that I have several favicons in the head like this:
```

```
With a single instance of Favico.js only on the favicons was manipulated.
Using the "elementId" Option didn't worked too, because it overwrites the href with the empty src. This results then in a exception.

So I ended up with adding the option to pass a dom element directly to favico, which allowed me then to hack around the issue. This is the way how I use now favicon in my code.

```javascript
jQuery('head > link[rel="icon"]').each(function() {
var newFavicon = new Favico({
bgColor : '#c4662b',
animation : 'popFade',
element : this
});

faviconJS.push(newFavicon);
});

faviconJS.forEach(function(faviconJS) {
faviconJS.badge(currentNotificationValue);
});
```

I was thinking about modifying favico, so the library itself can handle this multi icons in a proper way, but didn't wanted to make a so big change without knowing that there is interest.