This file contains 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
Input | |
<App /> | |
React DOM rendering | |
<div></div> | |
Prettyprint rendering ReactElement | |
<App /> | |
Prettyprint rendering ReactTestComponent |
This file contains 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
const DOUBLE_PRESS_DELAY = 300; | |
// ... | |
/** | |
* Double Press recognition | |
* @param {Event} e | |
*/ | |
handleImagePress(e) { | |
const now = new Date().getTime(); |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Test</title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
// create a video node without auto-play | |
var originalVideoNode = document.createElement("video"); |
This file contains 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
//app/controller/Base.js | |
Ext.define('SenchaCon.controller.Base',{ | |
extend: 'Ext.app.Controller', | |
/** | |
* If user already logged in, don't require login anymore. | |
* Otherwise, open the login modal. | |
*/ | |
requireLogin: function() { | |
if (User.isLoggedIn) { |