Use identical error messages, improve gzipped size

This commit is contained in:
Pierre-Yves Gerardy 2016-09-09 17:43:39 +02:00
parent 0159cd667a
commit e55284fba2

View file

@ -1474,8 +1474,8 @@
m.mount = m.module = function (root, component) {
if (!root) {
throw new Error("Please ensure the DOM element exists before " +
"rendering a template into it.")
throw new Error("Ensure the DOM element being passed to " +
"m.route/m.mount/m.render is not undefined.")
}
var index = roots.indexOf(root)