Skip to content

Commit

Permalink
0.12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nbubna committed Oct 22, 2014
1 parent 814a03b commit b77326b
Show file tree
Hide file tree
Showing 19 changed files with 29 additions and 26 deletions.
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -69,6 +69,7 @@ Includes [dot-traversal][dot], [`query()`][query], [`each()`][each], [`only()`][
* 2013-08-25 [v0.10.2][] (data-html-reference and test/alter.js fix)
* 2014-03-10 [v0.11.0][] (deprecated event.js out of main artifact, query limit parameter)
* 2014-05-13 [v0.12.0][] (all() function)
* 2014-10-22 [v0.12.1][] ([add(textNode)][16])

[v0.9.0]: https://github.com/nbubna/HTML/tree/0.9.0
[v0.9.1]: https://github.com/nbubna/HTML/tree/0.9.1
Expand All @@ -78,10 +79,12 @@ Includes [dot-traversal][dot], [`query()`][query], [`each()`][each], [`only()`][
[v0.10.2]: https://github.com/nbubna/HTML/tree/0.10.2
[v0.11.0]: https://github.com/nbubna/HTML/tree/0.11.0
[v0.12.0]: https://github.com/nbubna/HTML/tree/0.12.0
[v0.12.1]: https://github.com/nbubna/HTML/tree/0.12.1
[1]: https://github.com/nbubna/HTML/issues/1
[2]: https://github.com/nbubna/HTML/issues/2
[7]: https://github.com/nbubna/HTML/issues/7
[8]: https://github.com/nbubna/HTML/issues/8
[16]: https://github.com/nbubna/HTML/issues/16

Thanks to Adrian Cooney for the inspiration and [starting point][voyeur] for this project.

Expand Down
2 changes: 1 addition & 1 deletion bower.json
@@ -1,6 +1,6 @@
{
"name": "HTML",
"version": "0.12.0",
"version": "0.12.1",
"main": "dist/HTML.min.js",
"description": "An intuitive, extensible way to work directly with the DOM.",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion component.json
Expand Up @@ -2,7 +2,7 @@
"name": "HTML",
"repo": "nbubna/HTML",
"description": "An intuitive, extensible way to work directly with the DOM.",
"version": "0.12.0",
"version": "0.12.1",
"keywords": [
"html",
"voyeur",
Expand Down
4 changes: 2 additions & 2 deletions dist/HTML.alter.js
@@ -1,4 +1,4 @@
/*! HTML - v0.12.0 - 2014-05-13
/*! HTML - v0.12.1 - 2014-10-22
* http://nbubna.github.io/HTML/
* Copyright (c) 2014 ESHA Research; Licensed MIT, GPL */
(function(document, _) {
Expand All @@ -13,7 +13,7 @@
if (typeof arg === "string") {// turn arg into an appendable
return add.create(node, arg, ref);
}
if ('length' in arg) {// array of append-ables
if (!(arg instanceof Node) && 'length' in arg) {// array of append-ables
var ret = [];
for (var i=0,m=arg.length; i<m; i++) {
ret.push(add.all(node, arg[i], ref));
Expand Down
8 changes: 4 additions & 4 deletions dist/HTML.base.js
@@ -1,11 +1,11 @@
/*! HTML - v0.12.0 - 2014-05-13
/*! HTML - v0.12.1 - 2014-10-22
* http://nbubna.github.io/HTML/
* Copyright (c) 2014 ESHA Research; Licensed MIT, GPL */
(function(window, document, Observer) {
"use strict";

var _ = {
version: "0.12.0",
version: "0.12.1",
slice: Array.prototype.slice,
list: function(list, force) {
if (list.length === 1){ return _.node(list[0], force); }
Expand Down Expand Up @@ -82,7 +82,7 @@
}
}
return !results[0] && results[0] !== false ? this :
results[0].matches ? _.list(results.filter(_.unique)) :
results[0] instanceof Node ? _.list(results.filter(_.unique)) :
//self.length === 1 ? results[0] :
results;
},
Expand Down Expand Up @@ -204,7 +204,7 @@
if (typeof arg === "string") {// turn arg into an appendable
return add.create(node, arg, ref);
}
if ('length' in arg) {// array of append-ables
if (!(arg instanceof Node) && 'length' in arg) {// array of append-ables
var ret = [];
for (var i=0,m=arg.length; i<m; i++) {
ret.push(add.all(node, arg[i], ref));
Expand Down
4 changes: 2 additions & 2 deletions dist/HTML.base.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/HTML.base.min.js.gz
Binary file not shown.
6 changes: 3 additions & 3 deletions dist/HTML.core.js
@@ -1,11 +1,11 @@
/*! HTML - v0.12.0 - 2014-05-13
/*! HTML - v0.12.1 - 2014-10-22
* http://nbubna.github.io/HTML/
* Copyright (c) 2014 ESHA Research; Licensed MIT, GPL */
(function(window, document, Observer) {
"use strict";

var _ = {
version: "0.12.0",
version: "0.12.1",
slice: Array.prototype.slice,
list: function(list, force) {
if (list.length === 1){ return _.node(list[0], force); }
Expand Down Expand Up @@ -82,7 +82,7 @@
}
}
return !results[0] && results[0] !== false ? this :
results[0].matches ? _.list(results.filter(_.unique)) :
results[0] instanceof Node ? _.list(results.filter(_.unique)) :
//self.length === 1 ? results[0] :
results;
},
Expand Down

0 comments on commit b77326b

Please sign in to comment.