Comparing version 0.3.0 to 0.3.1
@@ -431,8 +431,2 @@ /* hugov@runbox.com | https://github.com/hville/attodom.git | license:MIT */ | ||
/** | ||
* @function fragment | ||
* @return {!Object} Component | ||
*/ | ||
/** | ||
* @function | ||
@@ -439,0 +433,0 @@ * @param {!Function} factory |
@@ -432,8 +432,2 @@ /* hugov@runbox.com | https://github.com/hville/attodom.git | license:MIT */ | ||
/** | ||
* @function fragment | ||
* @return {!Object} Component | ||
*/ | ||
/** | ||
* @function | ||
@@ -440,0 +434,0 @@ * @param {!Function} factory |
@@ -13,9 +13,8 @@ import {D, element as el, list} from '../module' | ||
el('td') //leading column with icon | ||
.on('click', function() {store.delRow(rowKey) }) | ||
.child(ic_remove), | ||
.on('click', function() {store.delRow(rowKey) }) | ||
.child(ic_remove.cloneNode(true)), | ||
list(function(colKey) { | ||
return el('td') // data columns | ||
.child( | ||
el('input') | ||
.set('update', function(v) { this.node.value = v }) | ||
el('input').set('update', function(v) { this.node.value = v }) | ||
.on('change', function() {store.set(this.node.value, [rowKey, colKey]) } ) | ||
@@ -22,0 +21,0 @@ ) |
@@ -11,4 +11,4 @@ // @ts-check | ||
// utils | ||
export {setWindow, D, W} from './src/document' | ||
export {setWindow, D, W} from './src/window' | ||
export {find} from './src/find' | ||
export {css} from './src/css' |
{ | ||
"name": "attodom", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"main": "./dist/index.js", | ||
@@ -22,3 +22,3 @@ "module": "./module.js", | ||
"scripts": { | ||
"test": "npm run build:main && cotest tst", | ||
"test": "npm run build:main & cotest tst", | ||
"gzip": "node -e \"fs.writeFileSync(process.argv[2], zlib.gzipSync(fs.readFileSync(process.argv[1])))\"", | ||
@@ -29,6 +29,6 @@ "build:main": "rollup -o ./dist/index.js -f cjs --banner \"/* hugov@runbox.com | https://github.com/hville/attodom.git | license:MIT */\" ./module.js", | ||
"build:gzip": "npm run gzip -- ./dist/browser.min.js ./bld/browser.gz", | ||
"build": "npm run build:main && npm run build:module && npm run build:browser && npm run build:min", | ||
"prepublishOnly": "npm test && npm run build:browser && npm run build:min", | ||
"example:table": "cd ./examples && rulo -i table.js -o index.js", | ||
"example:transition": "cd ./examples && rulo -i transition.js -o index.js" | ||
"build": "npm run build:main & npm run build:module & npm run build:browser & npm run build:min", | ||
"prepublishOnly": "npm test & npm run build:browser & npm run build:min", | ||
"example:table": "cd ./examples & rulo -i table.js -o index.js", | ||
"example:transition": "cd ./examples & rulo -i transition.js -o index.js" | ||
}, | ||
@@ -35,0 +35,0 @@ "repository": { |
@@ -23,3 +23,3 @@ # attodom | ||
.on('click', function() {store.delRow(rowKey) }) | ||
.child(ic_remove), | ||
.child(ic_remove.cloneNode(true)), | ||
list(function(colKey) { | ||
@@ -105,3 +105,2 @@ return el('td') // data columns | ||
* `component(node)` | ||
* `fragment()` | ||
@@ -180,2 +179,3 @@ List (component with multiple or no nodes) | ||
* `List` and `Select` can't be updated unless they have a parentNode or parent fragment to hold them together. | ||
* e.g. `list(childFactory).moveTo(D.createDocumentFragment()).update()` | ||
@@ -182,0 +182,0 @@ |
@@ -1,2 +0,2 @@ | ||
import {D} from './document' | ||
import {D} from './window' | ||
import {attoKey} from './atto-key' | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
import {D} from './document' | ||
import {D} from './window' | ||
import {attoKey} from './atto-key' | ||
@@ -3,0 +3,0 @@ import {CElementProto} from './_c-element' |
@@ -1,2 +0,2 @@ | ||
import {D} from './document' | ||
import {D} from './window' | ||
import {attoKey} from './atto-key' | ||
@@ -3,0 +3,0 @@ import {CElementProto} from './_c-element' |
@@ -1,2 +0,2 @@ | ||
import {D} from './document' | ||
import {D} from './window' | ||
import {CElement} from './_c-element' | ||
@@ -59,10 +59,2 @@ import {CNode} from './_c-node' | ||
/** | ||
* @function fragment | ||
* @return {!Object} Component | ||
*/ | ||
export function fragment() { | ||
return new CNode(D.createDocumentFragment()) | ||
} | ||
/** | ||
* @function | ||
@@ -69,0 +61,0 @@ * @param {!Function} factory |
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
147483
2151