Comparing version 0.4.10 to 0.4.11
@@ -44,3 +44,3 @@ ;(function() { | ||
}else{ | ||
this.dom = (el instanceof Element || el === window) ? [el] : []; | ||
this.dom = ((el instanceof Element) || el === window) ? [el] : []; | ||
} | ||
@@ -47,0 +47,0 @@ } |
@@ -61,4 +61,19 @@ /** | ||
req.open(opts.method, opts.url); | ||
var url = opts.url; | ||
if(opts.qs) { | ||
var keys = Object.keys(opts.qs) | ||
, qs = '?'; | ||
keys.forEach(function(key, index) { | ||
if(index) { | ||
qs += '&'; | ||
} | ||
qs += encodeURIComponent(key) + '=' + encodeURIComponent(opts.qs[key]); | ||
}) | ||
url += qs; | ||
} | ||
req.open(opts.method, url); | ||
// apply custom request headers | ||
@@ -65,0 +80,0 @@ for(z in opts.headers) { |
{ | ||
"name": "air", | ||
"description": "Lightweight, modular DOM library", | ||
"version": "0.4.10", | ||
"version": "0.4.11", | ||
"author": "muji <noop@xpm.io>", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
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
48752
47
1314