mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
minor jquery cleanups
This commit is contained in:
1
packages/jquery-waypoints/package.js
vendored
1
packages/jquery-waypoints/package.js
vendored
@@ -2,4 +2,5 @@ Package.describe({
|
||||
summary: "Execute a function when the user scrolls past an element"
|
||||
});
|
||||
|
||||
Package.require("jquery");
|
||||
Package.client_file('waypoints.js');
|
||||
|
||||
@@ -139,6 +139,9 @@ Sky.ui.render = function (render_func, events, event_data) {
|
||||
/// Do a query on 'collection', and replace the children of 'element'
|
||||
/// with the results.
|
||||
///
|
||||
/// If jQuery is present, then 'element' may be a jQuery result set,
|
||||
/// in which case the first element is used.
|
||||
///
|
||||
/// options to include:
|
||||
/// query: minimongo selector (default: {})
|
||||
/// sort: minimongo sort specification (default: natural order)
|
||||
@@ -149,8 +152,6 @@ Sky.ui.render = function (render_func, events, event_data) {
|
||||
///
|
||||
/// returns an object with:
|
||||
/// stop(): stop updating, tear everything down and let it get GC'd
|
||||
///
|
||||
/// XXX eliminate jQuery dependencies ...
|
||||
Sky.ui.renderList = function (collection, element, options) {
|
||||
if (('$' in window) && (element instanceof $))
|
||||
// allow element to be a jQuery result set
|
||||
|
||||
Reference in New Issue
Block a user