Sha256: fb77c0345e5f36819256eab716416c3d1fe18f77cd30fe4bd3660ab97730d558
Contents?: true
Size: 1.12 KB
Versions: 2
Compression:
Stored size: 1.12 KB
Contents
// ========================================================================== // JsDoc // ========================================================================== function main() { // SproutCore loads the files from a pre-generated location unlike when // this apps runs on your local box, hence this logic. if (window.location.hostname.toString().indexOf('sproutcore.com') >= 0) { var clientRoot = 'sproutcore/-docs' ; var clientName = 'sproutcore' ; var canRebuild = NO ; } else { var clientRoot = window.location.pathname.toString().replace(/-docs\/.*/,'-docs').substr(1,window.location.pathname.length); var clientName = clientRoot.match(/([^\/]+)\/-docs/)[1]; var canRebuild = YES ; } console.log('clientRoot: %@ clientName: %@ canRebuild: %@'.fmt(clientRoot, clientName, canRebuild)); JsDoc.docsController.set('selection',[]) ; JsDoc.docsController.set('clientRoot', clientRoot) ; JsDoc.docsController.set('clientName', clientName) ; JsDoc.docsController.set('canRebuild', canRebuild) ; JsDoc.docsController.reloadJsDoc() ; JsDoc.getPath('bodyPage.mainPane').append() ; };
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sproutit-sproutcore-1.0.0.20090408130025 | frameworks/sproutcore/apps/sc_jsdoc/main.js |
sproutit-sproutcore-1.0.0.20090416161445 | frameworks/sproutcore/apps/sc_jsdoc/main.js |