Skip to content

Commit

Permalink
Upgrade underscore.string.min.js.
Browse files Browse the repository at this point in the history
FED-68
  • Loading branch information
cahrens authored and andy-armstrong committed Mar 18, 2016
1 parent a1f73f7 commit e5c7fdd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
1 change: 0 additions & 1 deletion common/static/js/vendor/underscore.string.min.js

This file was deleted.

1 change: 1 addition & 0 deletions common/static/js/vendor/underscore.string.min.js
11 changes: 5 additions & 6 deletions lms/static/lms/js/require-config.js
Expand Up @@ -18,12 +18,11 @@
}
};
defineDependency("jQuery", "jquery");
defineDependency("_", "underscore");
if (window._ && window._.str) {
define("underscore.string", [], function () {return window._.str;});
}
else {
console.error("Expected _.str (underscore.string) to be on the window object, but not found.");
defineDependency("s", "underscore.string");
// Underscore.string no longer installs itself directly on "_". For compatibility with existing
// code, add it to "_" with its previous name.
if (window._ && window.s) {
window._.str = window.s;
}
defineDependency("gettext", "gettext");
defineDependency("Logger", "logger");
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -6,7 +6,8 @@
"edx-pattern-library": "0.10.4",
"requirejs": "~2.1.22",
"uglify-js": "2.4.24",
"underscore": "~1.8.3"
"underscore": "~1.8.3",
"underscore.string": "~3.3.4"
},
"devDependencies": {
"jshint": "^2.7.0",
Expand Down

0 comments on commit e5c7fdd

Please sign in to comment.