-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Description
Hello,
I forked the repo about this, and just wanted to have your opinion on this before testing and proposing it :
The main goal of this part is to preserve prototypal inheritance with Zepto objects in IE :
On a "modern" browser :
var doc = $(document)
doc.foo // undefined
$.fn.foo = "bar"
doc.foo // "bar"With $.extend(dom, $.fn) in IE:
var doc = $(document)
doc.foo // undefined
$.fn.foo = "bar"
doc.foo // undefinedThe main bottleneck is that it uses another context for execution (via an iframe), so isArray mush use {}.toString instead of instanceof. Positive point though, isZ in IE can now use isPrototypeOf.
Thanks!
Metadata
Metadata
Assignees
Labels
No labels