starting from the hello_world demo:
- we are gonna need the
to_string
method. but items from traits can only be used if the trait is in scope so we need to addValue
to ouruse
statement.
use neon::js::JsString;
taken from http://web.archive.org/web/20091003023412/http://tothink.com:80/mnemonic/wordlist.txt | |
These 1633 words were chosen very specifically to be short (4-7 letters), | |
phonetically different from one another, easy to understand over the phone, | |
and also recognizable internationally. | |
Wordlist ver 0.732 - EXPECT INCOMPATIBLE CHANGES; | |
acrobat africa alaska albert albino album | |
alcohol alex alpha amadeus amanda amazon | |
america analog animal antenna antonio apollo |
I hereby claim:
To claim this, I am signing this object:
<script>alert('ok')</script> |
var Component = require('choo/component') | |
const NO_COMPONENT = 'Model constructor expects a Component as first argument.' | |
module.exports = class Model { | |
constructor (component, opts) { | |
if (!component || !(component instanceof Component)) { | |
throw new Error(NO_COMPONENT) | |
} |
game meat | |
nuts | |
berries | |
some vegetables |
// original idea from https://github.com/justinfagnani/mixwith.js | |
const _cachedApplications = '__cachedApplications'; | |
class SuperClass () | |
{ | |
constructor (superclass) | |
{ | |
return new MixinBuilder(superclass) | |
} |
example of props: | |
selectedIndex | |
tagName | |
nodeName | |
nodeType | |
ownerDocument | |
defaultChecked | |
defaultSelected |
var Nanocomponent = require('nanocomponent') | |
var nanostate = require('nanostate') | |
module.exports = Component | |
function Component (el) { | |
if (!(this instanceof Component)) return new Component(el) | |
this._el = el |