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'; | |
function noOverride () { | |
// cannot override | |
} | |
const Parent = Ember.Controller.extend({ | |
init() { | |
this._super(); | |
if (this.__proto__.noOverride !== noOverride) { |
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>set-function-prop-var</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
<script src="./suite.js"></script> | |
</head> | |
<body> | |
<h1>Open the console to view the results</h1> |
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
musicat@0.0.1 /Users/mixonic/Clients/rabble/musicat-stem | |
├── abbrev@1.0.9 | |
├── acorn@3.3.0 | |
├─┬ ajv@4.11.6 | |
│ └─┬ json-stable-stringify@1.0.1 | |
│ └── jsonify@0.0.0 | |
├── amdefine@1.0.1 | |
├── ansi-regex@2.0.0 | |
├── anymatch@1.3.0 | |
├── aproba@1.0.4 |
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
Talked with @dgeb, and I think this psuedo code would be correct for us to ensure we get the higher precedence for local/private lookups over global when resolving a pair of things: | |
``` | |
` | |
b:/my-app/widgets/top-level | |
a:/my-app/widgets/x-mark | |
b:/my-app/widgets/top-level/x-mark | |
` | |
let source = 'b:/my-app/widgets/top-level'; |
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'; | |
function log(string) { | |
let node = $('<p>').text(`${string} (input? ${$('input').length > 0})`); | |
node.appendTo('body'); | |
} | |
export default Ember.Component.extend({ | |
tagName: 'input', | |
willRender() { |
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.Component.extend({ | |
}); |
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({ | |
left: 0 | |
}); |
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'; | |
function log(component, string) { | |
let node = $('<p>').text(`${component.get('label')} - ${string}`); | |
node.appendTo('body'); | |
} | |
export default Ember.Component.extend({ | |
init() { | |
this._super(...arguments); |