15 Commits

Author SHA1 Message Date
David Greenspan
1168a70e3e fix reactive <select> tag in IE 7-8
Work around IE bug where HTML comments don't materialize inside
<select> and <option> tags.
2012-09-24 12:06:19 -07:00
David Glasser
7ffd598e26 Don't tell end users to run "meteor add". 2012-09-17 15:20:54 -07:00
David Greenspan
ce4e415bb7 jQuery dependency package.js changes 2012-09-17 14:42:28 -07:00
David Greenspan
d50654bbee whitespace 2012-09-17 14:42:28 -07:00
David Greenspan
f1a932c1df Error if no jQuery and no querySelectorAll (IE 7) 2012-09-17 14:42:27 -07:00
David Greenspan
efd5560b0f Remove Meteor dependency on jQuery/Sizzle
Meteor will use jQuery for selector matching if it's present on the
client (which at the moment is always), but it now will use bare
querySelectorAll on modern browsers and IE 8+ if there is no jQuery.
There is no other dependence on jQuery in Meteor.
2012-09-17 14:42:27 -07:00
David Greenspan
3364cb7b64 Clean up Spark efficient events hack with DomUtils
To test whether an element in the event bubbling chain matches a
selector, we now modify the selector to include an ID for the
element in question (which we assign if it doesn't have one),
so we search for one node rather than listing and checking all
nodes that match the selector!  This makes a huge speed difference in
the jsparse demo, which binds a global handler over a big DOM tree.

The new domutils are matchesSelector(element, contextNode, selector)
and matchesSelectorClipped(element, contextNode, selector, clipStart,
clipEnd).

Note: Eventually make the args more like this W3C working draft:
http://www.w3.org/TR/selectors-api2/#matches
2012-09-17 11:47:46 -07:00
David Greenspan
e80066a9ef DomUtils.elementOrder rename and flip
=> compareElementIndex and returns -1,0,1 in the
tradition of comparators rather than the opposite
2012-09-17 11:47:46 -07:00
David Greenspan
755b1bcfa2 fix Spark constant patching by improving elementContains (fix #323) 2012-09-15 13:34:04 -07:00
David Greenspan
43e2562967 depend on Sizzle, not jQuery 2012-08-30 13:26:04 -07:00
David Greenspan
900695b68c move rangeToHtml into DomUtils 2012-08-09 15:37:00 -07:00
David Greenspan
8396a37303 landmark preservation totally works 2012-08-03 21:29:56 -07:00
David Greenspan
787b469e09 DomUtils.findElement -> findAll 2012-07-30 11:08:39 -07:00
David Greenspan
3dbccc131c move liveui/domutils utilities into DomUtils 2012-07-27 15:32:51 -07:00
David Greenspan
328a2af833 create DomUtils package 2012-07-27 14:27:34 -07:00