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> | |
<meta charset="UTF-8"> | |
<title>Hello World!</title> | |
</head> | |
<body> | |
<h1>Hello World!</h1> | |
<!-- All of the Node.js APIs are available in this renderer process. --> | |
We are using Node.js <script>document.write(process.versions.node)</script>, |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
init() { | |
this._super(...arguments); | |
this.set('foo', [1,2,3]); | |
}, | |
actions: { | |
notifyParent() { |
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> | |
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Jay's eBook Library</title> | |
<meta name="description" content="Sharing knowledge for great justice and much win"> |
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
import Ember from 'ember'; | |
//import { stringify } from 'twiddle/utils/stringify'; | |
let lastValue = null; | |
let lastAttrsValue = null; | |
export default Ember.Component.extend({ | |
didUpdateAttrs() { | |
//this._super(...arguments); | |
console.log("didUpdateAttrs", |
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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
actions: { | |
numberChanged(e) { | |
const stringValue = e.currentTarget.value; | |
const numValue = parseFloat(stringValue); | |
console.log("No, really, this is a number!", numValue, typeof numValue); | |
this.set('data', numValue); | |
} |
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
import LSAdapter from 'ember-localstorage-adapter'; | |
export default LSAdapter.extend({ | |
namespace: 'twiddle_demo_namspace' | |
}); |
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
import LSAdapter from 'ember-localstorage-adapter'; | |
export default LSAdapter.extend({ | |
namespace: 'twiddle-ls-namespace' | |
}); |
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
import { NativeArray } from '../../lib/mixins/array'; | |
import { AbstractTestCase, moduleFor } from 'internal-test-helpers'; | |
class ArrayPrototypeExtensionSelfReferenceTests extends AbstractTestCase { | |
'@test should not create non-Symbol, enumerable properties that refer to itself'() { | |
// Don't want to pollute Array.prototype so we make our own to extend | |
class ThrowAwayArray extends Array {} | |
// Extend our throw-away prototype (like EXTEND_PROTOTYPES.Array would) | |
NativeArray.apply(ThrowAwayArray.prototype); |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'input events demo', | |
text: 'Hello, world', | |
actions: { | |
emberKeyDown(...args) { | |
console.log('emberKeyDown action fired', args) | |
}, | |
nativeKeyUp(event) { |