From f0fa4c066030a9102a097a7f3540630477babaa0 Mon Sep 17 00:00:00 2001 From: Anton Wilhelm Date: Mon, 18 Nov 2013 11:49:37 +0100 Subject: [PATCH 1/4] remove dependency to discore-children (doesn't exist anymore) - component.json --- component.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/component.json b/component.json index e508f2c..dfcd1e9 100644 --- a/component.json +++ b/component.json @@ -4,8 +4,7 @@ "repo": "discore/siblings", "version": "0.0.2", "dependencies": { - "component/matches-selector": "*", - "discore/children": "*" + "component/matches-selector": "*" }, "main": "index.js", "scripts": [ From 62f8dbd6e46fbca16eb4318e5b6a1c36d17f9f27 Mon Sep 17 00:00:00 2001 From: Anton Wilhelm Date: Mon, 18 Nov 2013 12:11:45 +0100 Subject: [PATCH 2/4] remove dependency to discore-children (doesn't exist anymore) --- index.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 98f1a46..ba041dc 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,4 @@ var matches = require('matches-selector') -var getChildren = require('children') module.exports = Siblings @@ -10,6 +9,15 @@ function Siblings(el, selector) { }) } +function getChildren(el, selector) { + if (selector) { + return el.querySelectorAll(selector); + } else { + return el.children; + } + +} + Siblings.next = traverse('next') Siblings.prev = traverse('previous') @@ -40,4 +48,4 @@ function traverse(dir) { return limit === 1 ? siblings.shift() : siblings } -} \ No newline at end of file +} From 643e823edfb051074bab368d62d0df6966c2bc9d Mon Sep 17 00:00:00 2001 From: Anton Wilhelm Date: Mon, 5 May 2014 01:22:19 +0200 Subject: [PATCH 3/4] fix repo, breaks component install for version 1.x --- component.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component.json b/component.json index dfcd1e9..f3eadb6 100644 --- a/component.json +++ b/component.json @@ -1,7 +1,7 @@ { "name": "siblings", "description": "Get the siblings of an element", - "repo": "discore/siblings", + "repo": "actano/siblings", "version": "0.0.2", "dependencies": { "component/matches-selector": "*" From 80e4e85afe5dcfd9ae32459797f6098f6ac28a21 Mon Sep 17 00:00:00 2001 From: Anton Wilhelm Date: Mon, 5 May 2014 01:25:38 +0200 Subject: [PATCH 4/4] bump version --- component.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component.json b/component.json index f3eadb6..51c75a6 100644 --- a/component.json +++ b/component.json @@ -2,7 +2,7 @@ "name": "siblings", "description": "Get the siblings of an element", "repo": "actano/siblings", - "version": "0.0.2", + "version": "0.0.3", "dependencies": { "component/matches-selector": "*" },