rendrjs / rendr

Render your Backbone.js apps on the client and the server, using Node.js.
MIT License
4.09k stars 312 forks source link

pass the app to getModel when constructing a model from the options passed to a view #405

Closed mdimas closed 10 years ago

mdimas commented 10 years ago

Models generally expect to have access to the app object, but if they're constructed from the options passed to a view they're currently missing the app. This is a quick fix for that by passing options.app (which is required) to the modelUtils.getModel function.

coveralls commented 10 years ago

Coverage Status

Coverage remained the same when pulling 9835ccf571d93b656d7ae02927cb060c617054c1 on change:md_pass_app_to_getmodel into 7ed6145b338aae0c0e18b6bfee443f30cd16e040 on rendrjs:master.

coveralls commented 10 years ago

Coverage Status

Coverage increased (+0.02%) when pulling 3c7cfec404e4f123d3c0d19f0b10761c58baef90 on change:md_pass_app_to_getmodel into 7ed6145b338aae0c0e18b6bfee443f30cd16e040 on rendrjs:master.

coveralls commented 10 years ago

Coverage Status

Coverage increased (+1.0%) when pulling 08133b5bfd81b3fddc27c6c94f9d0e448c91fb12 on change:md_pass_app_to_getmodel into 7ed6145b338aae0c0e18b6bfee443f30cd16e040 on rendrjs:master.