This file contains hidden or 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(global) { | |
var get = Ember.get, set = Ember.set, doc = document; | |
global.FastSelectComponent = Ember.Component.extend({ | |
items: null, | |
valuePath: 'value', | |
labelPath: 'label', | |
value: null, | |
selected: null, |
This file contains hidden or 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 = require 'app' | |
require 'models/provider' | |
require 'stores/provider' | |
# Sample test case | |
describe 'Provider', -> | |
describe '#create()', -> | |
# essentially this is testing that our configuration is working | |
# so somewhat of a redundant test | |
it 'should return a new Provider record matching input', -> |
This file contains hidden or 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.Router.map -> | |
@route "a" | |
@route "b" | |
@route "ab" | |
@route "ba" | |
App.ARoute = Em.Route.extend | |
events: | |
animateToB: -> | |
@transitionTo('ab') |
This file contains hidden or 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
<script type="text/x-handlebars" data-template-name="blog-post"> | |
{{view Blog.EditFormView contentBinding="content" classBinding="content.isEditing:editing-form"}} | |
{{view Blog.PostDisplayView contentBinding="content" classBinding="content.isEditing:editing-display"}} | |
{{#if showComments}} | |
<div id="disqus_thread"></div> | |
{{#view contentBinding="content" tagName="script" type="text/javascript"}} | |
var disqus_shortname = 'ideafreemonoid'; | |
var disqus_identifier = '{{content.slug}}'; | |
(function() { | |
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; |
This file contains hidden or 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
<table> | |
<tbody tabindex="-1" id="sc201" class=""> | |
<tr tabindex="-1" id="sc210" class="" style=""> | |
<td tabindex="-1" id="sc214" class="" style=""><span tabindex="-1" id="sc216" class="" style="">something</span></td> | |
<td tabindex="-1" id="sc220" class="" style=""><span tabindex="-1" id="sc221" class="" style="">new</span></td> | |
</tr> | |
<tr tabindex="-1" id="sc225" class="" style=""> | |
<td tabindex="-1" id="sc228" class="" style=""><span tabindex="-1" id="sc229" class="" style="">something</span></td> | |
<td tabindex="-1" id="sc232" class="" style=""><span tabindex="-1" id="sc233" class="" style="">else</span></td> | |
</tr> |
This file contains hidden or 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
ListviewTest.testController = SC.ArrayController.create({ | |
content: [ { 'name': 'Item 1', 'description': 'This is item 1' }, | |
{ 'name': 'Item 2', 'description': 'This is item 2' } ], | |
}); | |
ListviewTest.mainPage = SC.Page.design({ | |
// The main pane is made visible on screen as soon as your app is loaded. | |
// Add childViews to this pane for views to display immediately on page |