mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-24 02:10:24 +00:00
fix __proto__ for ie.
This commit is contained in:
parent
14fe8cff2d
commit
26b5ae4109
1 changed files with 5 additions and 5 deletions
|
|
@ -75,11 +75,11 @@ JsonTest.prototype.testItShouldPreventRecursion = function () {
|
|||
};
|
||||
|
||||
JsonTest.prototype.testItShouldSerializeOnlyOwnProperties = function() {
|
||||
var parent = { p: 'p'};
|
||||
var child = { c: 'c'};
|
||||
child.__proto__ = parent;
|
||||
assertEquals('{"c":"c"}', angular.toJson(child));
|
||||
}
|
||||
var parent = createScope();
|
||||
var child = createScope(parent);
|
||||
child.c = 'c';
|
||||
expect(angular.toJson(child)).toEqual('{"c":"c"}');
|
||||
};
|
||||
|
||||
JsonTest.prototype.testItShouldSerializeSameObjectsMultipleTimes = function () {
|
||||
var obj = {a:'b'};
|
||||
|
|
|
|||
Loading…
Reference in a new issue