Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Commits on Oct 29, 2011
@joehewitt * query.replace method 49ffafd
Commits on Nov 29, 2011
@joehewitt 0.0.3 34eb380
Showing with 16 additions and 7 deletions.
  1. +10 −7 package.json
  2. +6 −0 query.js
View
17 package.json
@@ -1,20 +1,23 @@
{
"name": "ore",
"description": "Foundations for reusable web components.",
- "version": "0.0.2",
+ "version": "0.0.3",
"homepage": "http://github.com/joehewitt/ore",
"repository": {
- "type": "git",
- "url" : "http://github.com/joehewitt/ore.git"
+ "type": "git",
+ "url": "git://github.com/joehewitt/ore.git"
},
"keywords": [],
"author": "Joe Hewitt <joe@joehewitt.com>",
"contributors": [],
"dependencies": {
- "fool": "",
- "underscore": ""
+ "fool": "",
+ "underscore": ""
},
"main": "./ore",
"directories": {},
- "engines": { "node": ">=0.4.0" }
-}
+ "engines": {
+ "node": ">=0.4.0"
+ },
+ "devDependencies": {}
+}
View
6 query.js
@@ -196,6 +196,12 @@ Set.prototype = {
return this;
},
+ replace: function(replaceNode) {
+ var first = this.slots()[0];
+ act(replaceNode, function action(n) { first.parentNode.replaceChild(n, first); });
+ return this;
+ },
+
remove: function() {
_.each(this.nodes, function(n) {
n.parentNode.removeChild(n);

No commit comments for this range

Something went wrong with that request. Please try again.