This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var graphDefinition = { | |
'somewhere': 'there is a ${./over/therainbow}', | |
'over':{ | |
'therainbow' : 'pot of gold' | |
}, | |
'value': 'genius', | |
'act':{ | |
'of': '${../value}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// function | |
function onKeyDown(e){ | |
// [input|textarea] trigger input with target.value // in case of input field, textarea | |
// [contenteditable] trigger input with textContent // in case of contentEditable ? | |
} | |
// detect support for input | |
if(!'oninput' in document.createElement("input")){ | |
// add polyfill in this case | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Parent = function Parent(){ | |
}; | |
Parent.prototype = { | |
a:function a(){ | |
console.log(333); | |
} | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define([], function () { | |
var PubSubManager = function PubSubManager() { | |
this.subscribers = {}; | |
}; | |
var instance = undefined; | |
PubSubManager.getInstance = function PubSubManager$getInstance() { | |
if (!instance) { | |
instance = new PubSubManager(); |
NewerOlder