X Tutup
Skip to content

Commit 55122cd

Browse files
petebacondarwinIgorMinar
authored andcommitted
fix(angular1-router): add missing wrapper methods
Closes #6763 Closes #6861 Closes #6861
1 parent 7e0f02f commit 55122cd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

modules/angular1_router/lib/facades.es5

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@ var StringMapWrapper = {
173173

174174
var List = Array;
175175
var ListWrapper = {
176+
toJSON: function(l) {
177+
return JSON.stringify(l);
178+
},
179+
176180
clear: function (l) {
177181
l.length = 0;
178182
},
@@ -247,6 +251,10 @@ var ListWrapper = {
247251
};
248252

249253
var StringWrapper = {
254+
charCodeAt: function(s, i) {
255+
return s.charCodeAt(i);
256+
},
257+
250258
equals: function (s1, s2) {
251259
return s1 === s2;
252260
},

0 commit comments

Comments
 (0)
X Tutup