Skip to content

Commit 21b94cc

Browse files
use charAt() instead of brackets to access string character
IE7 does not support bracket access to string characters and errors: http://stackoverflow.com/questions/5943726/string-charatx-or-stringx
1 parent bd60bc5 commit 21b94cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/ember-application/lib/system/application.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,11 +681,11 @@ function normalize(fullName) {
681681
var result = name;
682682

683683
if (result.indexOf('.') > -1) {
684-
result = result.replace(/\.(.)/g, function(m) { return m[1].toUpperCase(); });
684+
result = result.replace(/\.(.)/g, function(m) { return m.charAt(1).toUpperCase(); });
685685
}
686686

687687
if (name.indexOf('_') > -1) {
688-
result = result.replace(/_(.)/g, function(m) { return m[1].toUpperCase(); });
688+
result = result.replace(/_(.)/g, function(m) { return m.charAt(1).toUpperCase(); });
689689
}
690690

691691
return type + ':' + result;

0 commit comments

Comments
 (0)