Comparing version 1.0.3 to 1.0.4
@@ -211,3 +211,3 @@ /** | ||
var offset, w, h; | ||
if (!utils.isWindow(node)) { | ||
if (!utils.isWindow(node) && node.nodeType !== 9) { | ||
offset = utils.offset(node); | ||
@@ -214,0 +214,0 @@ w = utils.outerWidth(node); |
@@ -363,2 +363,5 @@ var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source; | ||
getWindow: function (node) { | ||
if (node && node.document && node.setTimeout) { | ||
return node; | ||
} | ||
var doc = node.ownerDocument || node; | ||
@@ -365,0 +368,0 @@ return doc.defaultView || doc.parentWindow; |
{ | ||
"name": "dom-align", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Align DOM Node Flexibly ", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40573
908