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.
Coverage remained the same when pulling 9835ccf571d93b656d7ae02927cb060c617054c1 on change:md_pass_app_to_getmodel into 7ed6145b338aae0c0e18b6bfee443f30cd16e040 on rendrjs:master.
Coverage increased (+0.02%) when pulling 3c7cfec404e4f123d3c0d19f0b10761c58baef90 on change:md_pass_app_to_getmodel into 7ed6145b338aae0c0e18b6bfee443f30cd16e040 on rendrjs:master.
Coverage increased (+1.0%) when pulling 08133b5bfd81b3fddc27c6c94f9d0e448c91fb12 on change:md_pass_app_to_getmodel into 7ed6145b338aae0c0e18b6bfee443f30cd16e040 on rendrjs:master.
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.