zurb/foundation — pull request #3534 by seantimm (2013-11-10 00:41:57+00:00)
Title: interchange TypeError: el[0] is undefined

I'm using interchange along with angular. When a part of the page is re-rendered and there are no images on it then an error is displayed:
TypeError: el[0] is undefined

I fixed it by adding a el[0] check in the following place: (foundation.interchange.js v.4.3.2 line 33-35)

directives : {
replace: function (el, path) {
if (el[0] && /IMG/.test(el[0].nodeName)) {

not sure if this is the best way to solve the problem, I guess you guys will know ;)