Skip to content

Instantly share code, notes, and snippets.

@isao
Created October 18, 2012 23:03
Show Gist options
  • Select an option

  • Save isao/3915260 to your computer and use it in GitHub Desktop.

Select an option

Save isao/3915260 to your computer and use it in GitHub Desktop.
bz 5472979
/**
* Calculates the static handler URL for the resource.
* @private
* @method _calcResourceURL
* @param {object} res the resource for which to calculate the URL
* @param {object} mojitRes the resource for the mojit
* @return {nothing}
*/
_calcResourceURL: function(res, mojitRes) {
var fs = res.source.fs,
relativePath = fs.fullPath.substr(fs.rootDir.length + 1),
urlParts = [],
rollupParts = [],
rollupFsPath;
// Don't clobber a URL calculated by another RS addon, or bother to
// proceed for server affinity resources that don't need uris
if (res.hasOwnProperty('url') || ('server' === res.affinity.affinity)) {
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment