Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

We should probably start commenting better.

  • Loading branch information...
commit 8e3ceef7ad7d27c7b52519980c4512d7948ad01b 1 parent eac3370
Dave Porter dcporter authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  frameworks/runtime/system/string.js
2  frameworks/runtime/system/string.js
View
@@ -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) {
Please sign in to comment.
Something went wrong with that request. Please try again.