Permalink
Browse files

We should probably start commenting better.

  • Loading branch information...
1 parent eac3370 commit 8e3ceef7ad7d27c7b52519980c4512d7948ad01b @dcporter dcporter committed Oct 1, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 frameworks/runtime/system/string.js
View
2 frameworks/runtime/system/string.js
@@ -93,6 +93,8 @@ SC.String = /** @scope SC.String.prototype */ {
}
var ret = SC.String._scs_valueForKey(propertyPath, data, string);
+ // If a value was found, return that; otherwise return the original matched text to retain it in the string
+ // for future formatting.
if (!SC.none(ret)) { return ret; }
else { return match; }
}).replace(/%@([0-9]+)?/g, function(match, index) {

0 comments on commit 8e3ceef

Please sign in to comment.