Skip to content

Commit

Permalink
Somewhere else in SproutCore defines String.prototype.loc in a way th…
Browse files Browse the repository at this point in the history
…at doesn't work for apps. Previously it was overwritten but my patch (having SC.String be "supplemented in" rather than mixed in) changed that. This restores String.prototype.loc to previous functionality.
  • Loading branch information
William Kakes authored and Charles Jolley committed Oct 21, 2009
1 parent 5296071 commit 5cbdeeb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frameworks/foundation/mixins/string.js
Expand Up @@ -347,6 +347,9 @@ SC.String.strip = SC.String.trim; // convenience alias.
// Apply SC.String mixin to built-in String object
SC.supplement(String.prototype, SC.String) ;

/** @private */
String.prototype.loc = SC.String.loc; // Two places define it, and we want the version at SC.String.loc

/** @private */
SC.String.fmt = String.prototype.fmt; // copy from runtime

0 comments on commit 5cbdeeb

Please sign in to comment.