Created
October 18, 2012 23:03
-
-
Save isao/3915260 to your computer and use it in GitHub Desktop.
bz 5472979
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * 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