I hereby claim:
- I am npup on github.
- I am npup (https://keybase.io/npup) on keybase.
- I have a public key whose fingerprint is D7C6 C761 93DF EBA1 246C 0EBC 875A 13C2 AE6E BB92
To claim this, I am signing this object:
apa |
{"apa": true, "idx": 42} |
I hereby claim:
To claim this, I am signing this object:
var E = (function () { | |
var global = this, doc = global.document; | |
function isArray(obj) {return "[object Array]"=={}.toString.call(obj);} | |
return { | |
"create": function (tag, attrs) { | |
var elem = doc.createElement(tag); | |
for (var attr in attrs) { | |
if ("html" == attr) {elem.innerHTML = attrs.html;} | |
else if ("class" == attr) {elem.className = attr;} | |
else {elem.setAttribute(attr, attrs[attr]);} |
/** | |
* | |
* @author [email protected] | |
* @date October 2013 | |
* | |
* Spartan "placeholder" functionality for IE8-9 | |
* | |
* Works on text inputs only. Uses querySelectorAll, so IE8+ | |
* | |
* Usage: |
function apa1() { | |
var david = 'david'; | |
console.log('%s', david); | |
} | |
apa1(); // david | |
function apa2() { | |
var david = 'david'; | |
console.log('%s, %s', david, petter); |
/** ----------------------------------------------------- | |
* Djur | |
* | |
*/ | |
function Svin(name) { | |
this.name = name; | |
this.type = 'Svin'; | |
} | |
Svin.toString = function () { | |
(function (global, ns) { | |
// Awesome model | |
function Apa(name, dryg) { | |
// try to fix if "new" wasn't used | |
if (!(this instanceof arguments.callee)) { | |
console.log('No "new" operator used when creating Apa "%s". Fixing..', name); | |
// v1 | |
//return newFix1(arguments); | |
// v2 |