I hereby propose this form of let
usage as the next best option, since the clearly better let (foo = 42) { ... }
let-block-statement syntax is dead and not coming to ES6:
/*let*/ { let foo = 42;
// your code that uses `foo`
}
I hereby propose this form of let
usage as the next best option, since the clearly better let (foo = 42) { ... }
let-block-statement syntax is dead and not coming to ES6:
/*let*/ { let foo = 42;
// your code that uses `foo`
}
function Foo(who) { | |
this.me = who; | |
} | |
Foo.prototype.identify = function() { | |
return "I am " + this.me; | |
}; | |
function Bar(who) { | |
Foo.call(this,"Bar:" + who); |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
var IApp = (function() { | |
var InterfaceApp = function() { | |
this.run = function(obj, vars) { | |
if(obj == null) { obj = this.modules; } | |
if(vars !== undefined) { this.addGlobals(vars); } | |
this.callEvents(obj); | |
}; |
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 14, | |
// font family with optional fallbacks |
People
![]() :bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
;(function (w, d, undefined) { | |
'use strict'; | |
var app = (function () { | |
var exports = {}; | |
var _privateMethod = function () { | |
return 'private method'; |
(function (root, factory) { | |
if ( typeof define === 'function' && define.amd ) { | |
define([], factory(root)); | |
} else if ( typeof exports === 'object' ) { | |
module.exports = factory(root); | |
} else { | |
root.myPlugin = factory(root); | |
} | |
})(typeof global !== "undefined" ? global : this.window || this.global, function (root) { |
// fade out | |
function fade(el) { | |
var op = 1; | |
var timer = setInterval(function () { | |
if (op <= 0.1){ | |
clearInterval(timer); | |
el.style.display = 'none'; | |
} | |
el.style.opacity = op; |