madrobby/zepto — pull request #502 by japrescott (2012-05-02 09:49:17+00:00)
Title: $.init broken for selector detection $(window.applicationCache)

hey robby!

here is a small fix for a problem i bumped into, while trying to register for the updateready events on the window.applicationCache object.
In RC1, your checking to see if an element is of a special nodeType or if its window. At the moment, window.applicationCache is identified as a selector.
I just added a further array to store such "window-y", or non-node elements to make a simple check in $.init for all of them (and more to come).

btw. this is my first pull request, so sorry, if I messed things up/didn't do as supposed!

p.S -> thanks for creating zepto! i've been eyeing you since 0.3, or was it 0.4? doesnt matter, your awesome! :)
p.S.S -> komm doch mal in die schöne Schweiz, z.B Zürich :) ist ja nur ein Katzensprung! und wir haben auch RedBull ;)