IE8 assign resource #1167

Closed
Elexy opened this Issue Jul 19, 2012 · 4 comments

Comments

Projects
None yet
3 participants

Elexy commented Jul 19, 2012

The mailing list suggested I add my post here, as a possible bug.

I just thought I'd share something that cost me some time to find why IE8 was the only browser that didn't work.

For a large form we use $resource to keep server and client in sync.
In the initial call I used:

Resume.get(function(resume) {
  $scope.resume = new Resume(resume);
  $scope.form = angular.copy($scope.resume);
});

On save I used:

$scope.save = function(resume) {
  $scope.mask();
  $scope.form.$save(function(resume) {
    $scope.resume = resume;
    $scope.cancel();
  });
}

This works in all browsers, even IE9.

IE8 needed to have the object Resume instantiated on every save, because the method 'save' that $scope.form inherited from Resume got lost:
$scope.form = new Resume(resume);

I don't know why other browser didn't destroy the method, but IE8 did.

@Elexy would you mind providing a minimal reproduce scenario in a plunker (http://plnkr.co/)? I would like to have a look into it as it sounds really strange... Thnx!

Elexy commented Jan 2, 2013

Pfew, I´ll try to whip something up today.

btford closed this Aug 24, 2013

Contributor

btford commented Aug 24, 2013

As part of our effort to clean out old issues, this issue is being automatically closed since it has been inactivite for over two months.

Please try the newest versions of Angular (1.0.8 and 1.2.0-rc.1), and if the issue persists, comment below so we can discuss it.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment