This commit is contained in:
Pierre-Yves Gérardy 2017-09-26 22:17:59 +02:00
parent 5b727f0070
commit c3bd936b53
4 changed files with 49 additions and 48 deletions

View file

@ -969,7 +969,8 @@ var coreRenderer = function($window) {
updateNodes(dom, dom.vnodes, Vnode.normalizeChildren(vnodes), false, hooks, null, namespace === "http://www.w3.org/1999/xhtml" ? undefined : namespace)
dom.vnodes = vnodes
for (var i = 0; i < hooks.length; i++) hooks[i]()
if ($doc.activeElement !== active) active.focus()
// document.activeElement can return null in IE https://developer.mozilla.org/en-US/docs/Web/API/Document/activeElement
if (active != null && $doc.activeElement !== active) active.focus()
}
return {render: render, setEventCallback: setEventCallback}
}
@ -1235,7 +1236,7 @@ m.request = requestService.request
m.jsonp = requestService.jsonp
m.parseQueryString = parseQueryString
m.buildQueryString = buildQueryString
m.version = "1.1.3"
m.version = "1.1.4"
m.vnode = Vnode
if (typeof module !== "undefined") module["exports"] = m
else window.m = m