Ensure dep.meta is an array

This commit is contained in:
Joe Cheng
2014-04-24 16:32:18 -07:00
parent 97dafa0a55
commit 1df9c498cf

View File

@@ -1264,7 +1264,7 @@
var $head = $("head").first();
if (dep.meta) {
var metas = $.map(dep.meta, function(content, name) {
var metas = $.map(asArray(dep.meta), function(content, name) {
return $("<meta>").attr("name", name).attr("content", content);
});
$head.append(metas);