developmentseed/bones — Issue #46: assets/bones/all.js fails to load
Author: whurleyf1
Created: 2012-03-05 19:50:12+00:00
State: open

In server.prototype.initializeAssets (servers/Route.bones) the following needs to be changed:

-this.get('/assets/bones/all.js', this.assets.all);
+this.get('/assets/bones/all.js', this.assets.all.handler);

Otherwise any request to assets/bones/all.js gives the following error:

TypeError: string is not a function
at String.CALL_NON_FUNCTION (native)
at callbacks (/Users/william/Documents/workspaces/Sitemanager/UI/node_modules/bones/node_modules/express/lib/router/index.js:270:11)
at callbacks (/Users/william/Documents/workspaces/Sitemanager/UI/node_modules/bones/node_modules/express/lib/router/index.js:277:9)
at callbacks (/Users/william/Documents/workspaces/Sitemanager/UI/node_modules/bones/node_modules/express/lib/router/index.js:277:9)
at callbacks (/Users/william/Documents/workspaces/Sitemanager/UI/node_modules/bones/node_modules/express/lib/router/index.js:277:9)
at callbacks (/Users/william/Documents/workspaces/Sitemanager/UI/node_modules/bones/node_modules/express/lib/router/index.js:277:9)
at callbacks (/Users/william/Documents/workspaces/Sitemanager/UI/node_modules/bones/node_modules/express/lib/router/index.js:277:9)
at callbacks (/Users/william/Documents/workspaces/Sitemanager/UI/node_modules/bones/node_modules/express/lib/router/index.js:277:9)
at callbacks (/Users/william/Documents/workspaces/Sitemanager/UI/node_modules/bones/node_modules/express/lib/router/index.js:277:9)
at callbacks (/Users/william/Documents/workspaces/Sitemanager/UI/node_modules/bones/node_modules/express/lib/router/index.js:277:9)