Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMeteor.users instanceof Mongo.Collection = false in IE < 10 or so #122
Comments
|
I had a solution... I think... Perhaps it had to do with the presence of this file: https://github.com/matb33/meteor-collection-hooks/blob/v0.7.5/bind-polyfill.js which has since been removed |
|
hi, recently i found my meteor-telescope app needs IE version >= 11 to run. I just want my meteor app not crash and then alert some message such as "please update your browser" finally, i modified collection-hooks some source. matb33:collection-hooks v0.7.13 if (Meteor.users) {
// If Meteor.users has been instantiated, attempt to re-assign its prototype:
CollectionHooks.reassignPrototype(Meteor.users);
// Next, give it the hook aspects:
var Collection = typeof Mongo !== "undefined" && typeof Mongo.Collection !== "undefined" ? Mongo.Collection : Meteor.Collection;
CollectionHooks.extendCollectionInstance(Meteor.users, Collection);
if( !(Meteor.users instanceof Mongo.Collection) && Meteor.isClient ) {
Meteor.users = jQuery.extend(true, new Mongo.Collection(null), Meteor.users);
}
}it works, and telescope runs without errors, although the stylesheets crashed with old browser. |
|
@comus Could you submit a PR for this if it is still and issue? Thank you! |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

When you implemented replacing the prototype of
Meteor.users, were you able to find a solution to get it to work for IE < 10? Or were you stuck (like I was)?