Convert Studio JS to use require.js

This commit is contained in:
David Baumgold
2013-08-08 13:45:52 -04:00
parent 94ce535f41
commit d97921e6e2
196 changed files with 7442 additions and 5902 deletions

View File

@@ -22,9 +22,9 @@ window.isExternal = function (url) {
// Utility method for replacing a portion of a string.
window.rewriteStaticLinks = function(content, from, to) {
if (from === null || to === null) {
return content
return content;
}
var regex = new RegExp(from, 'g');
return content.replace(regex, to)
return content.replace(regex, to);
};