Skip to content

IE10 and below errors on use of $meteor.collection #265

@pbastowski

Description

@pbastowski

When using the urigo:angular package with IE10 or IE9, I get the error below, when I try to use $meteor.collection. I get no such error(s) when using Chrome or Firefox.

TypeError: Object doesn't support property or method 'stop'
  at Anonymous function (http://192.168.1.14:3000/packages/urigo_angular.js?4b36953210173c874060f2e4feb315d53f8eca68:1220:11)
  at Anonymous function (http://192.168.1.14:3000/packages/tracker.js?21f0f4306879f57e10ad3a97efe9ea521c5b5775:277:9)
  at nonreactive (http://192.168.1.14:3000/packages/tracker.js?21f0f4306879f57e10ad3a97efe9ea521c5b5775:525:5)
  at invalidate (http://192.168.1.14:3000/packages/tracker.js?21f0f4306879f57e10ad3a97efe9ea521c5b5775:276:7)
  at stop (http://192.168.1.14:3000/packages/tracker.js?21f0f4306879f57e10ad3a97efe9ea521c5b5775:293:5)
  at Computation (http://192.168.1.14:3000/packages/tracker.js?21f0f4306879f57e10ad3a97efe9ea521c5b5775:229:7)
  at autorun (http://192.168.1.14:3000/packages/tracker.js?21f0f4306879f57e10ad3a97efe9ea521c5b5775:499:3)
  at Anonymous function (http://192.168.1.14:3000/packages/urigo_angular.js?4b36953210173c874060f2e4feb315d53f8eca68:1216:7)
  at Anonymous function (http://192.168.1.14:3000/client/parties/controllers/partiesList.js?cdbc134beb13cb206b4510912ec221f84b1a5e55:9:17)
  at invoke (http://192.168.1.14:3000/packages/angularjs_angular.js?f73c7e52641179adbe9af8405d6b6509730db348:4408:9)<div class="ng-scope" ui-view=""> 

If I comment out the line with $meteor.collection the error goes away.

See my code snippets, below:

;(function() {
    'use strict'

    angular.module("socially").controller("PartiesListCtrl",
            function ($scope, $meteor, PartiesService, $log) {

                $scope.parties = $meteor.collection(PartiesService.parties);

                $scope.remove = function (party) {
                    $scope.parties.remove(party);
                };

            });
}());

And here is PartiesService:

    angular.module('socially')
        .factory('PartiesService', PartiesService)
    ;

    function PartiesService() {

        var parties = {
            parties: new Mongo.Collection("parties")
        };

        return parties;
    }

The questions are:

  1. Is this a known error with Internet Explorer?
  2. Is there a known fix available?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions