Ember Router v2 is on the road to excellence, but it's not there yet. Here's a generally-approved yet unofficial wishlist/roadmap of features so that each incremental addition can keep some perspective.
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
outlet | |
a.not-ad href="#" click="read target='view'" style=view.linkStyle | |
p == title | |
nav.top-bar | |
.social | |
each socials | |
partial social_item | |
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
#= require spec_helper | |
#= require manifest | |
#= require application | |
describe "web app", -> | |
beforeEach -> window.manifest = MANIFEST | |
it "exists", -> | |
assert.ok Fashionhack |
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
Ember.onLoad('application', function() { | |
for(var name in Ember.TEMPLATES) { | |
var newName = name.replace(/embs\//, ""); | |
Ember.TEMPLATES[newName] = Ember.TEMPLATES[name]; | |
delete Ember.TEMPLATES[name]; | |
} | |
}); |
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
# mouse can be used to select panes | |
set-option -g mouse-select-pane on | |
# mouse can be used to select windows (by clicking in the status bar) | |
set-option -g mouse-select-window on | |
# mouse can be used to resize panes (by dragging dividers) | |
set-option -g mouse-resize-pane on | |
# not really sure what this does, but with it, the scrollwheel works inside Vim |
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
Thing = (function() { | |
var Thing = function() { | |
// this.whatever = asd | |
} | |
Thing.prototype.doIt = function() { | |
// Call function that no one has access to. | |
privateDoIt(); | |
} |
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
(function() { | |
var Ember = { assert: function() {} }; | |
// Version: v1.0.0-rc.1-78-gd4e6a5c | |
// Last commit: d4e6a5c (2013-02-26 10:34:28 -0500) | |
(function() { | |
/** | |
@module ember | |
@submodule ember-handlebars |
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
test('setTimeout should never run with a negative wait', function() { | |
var originalSetTimeout = window.setTimeout, newSetTimeoutUsed; | |
window.setTimeout = function() { | |
var wait = arguments[arguments.length - 1]; | |
newSetTimeoutUsed = true; | |
ok(!isNaN(wait) && wait >= 0, 'wait is a non-negative number'); | |
if(wait < 0 ) { |
Add transitions
hash to Ember.Route
, which contains transition handlers for preventing/redirecting/decorating attempted transitions, whether initiated by transitionTo
or URL change (handleURL
).
- Seal the app from unconstrained URL changes breaking your app's state machine
- Bring back router v1's state-based patterns while maintaining v2's lovely DSL for defining routes