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 (global) { | |
"use strict"; | |
function empty(obj) { | |
var key; | |
for (key in obj) if (obj.hasOwnProperty(key)) return false; | |
return true; | |
} | |
var Ember = global.Ember, |
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.TextField.reopen({ | |
attributeBindings: ['min','max'] | |
}); |
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
var get = Ember.get, set = Ember.set, doc = document; | |
var FastSelectComponent = Ember.Component.extend({ | |
items: null, | |
valuePath: 'value', | |
labelPath: 'label', | |
value: null, | |
selected: null, | |
tagName: 'select', |
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
/* global d3 */ | |
var BarChartComponent = Ember.Component.extend({ | |
data: [], | |
classNames: ['chart'], | |
tagName: 'svg', | |
didInsertElement: function () { | |
var data = this.get('data'); |
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
/* global google */ | |
var GoogleMapComponent = Ember.Component.extend({ | |
places: [], | |
width: 500, | |
height: 500, | |
attributeBindings: ['style'], | |
style: function () { | |
return 'width:'+this.width+'px; height:'+this.height+'px'; |
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
var ColorRectComponent = Ember.Component.extend({ | |
width: 100, | |
height: 100, | |
r: 0, | |
g: 0, | |
b: 0, | |
color: function () { | |
return 'rgb('+this.get('r')+','+this.get('g')+','+this.get('b')+')'; | |
}.property('r','g','b'), |
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
var ColorSwatchComponent = Ember.Component.extend({ | |
width: 100, | |
height: 100, | |
r: 0, | |
g: 0, | |
b: 0, | |
color: function () { | |
return 'rgb('+this.get('r')+','+this.get('g')+','+this.get('b')+')'; | |
}.property('r','g','b'), |
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
var pretender; | |
export function server(dsl) { | |
if (pretender) { | |
dsl.call(pretender); | |
return pretender; | |
} | |
pretender = new Pretender(dsl); | |
pretender.unhandledRequest = function (verb, path, request) { | |
fail("Pretender intercepted "+verb+" "+path+" but no handler was defined for this type of request"); | |
throw new Error("Pretender intercepted "+verb+" "+path+" but no handler was defined for this type of request"); |
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
var rimraf = require('rimraf'); | |
var helpers = require('broccoli-kitchen-sink-helpers'); | |
function TeeTree(inputTree, otherDir) { | |
this.inputTree = inputTree; | |
this.otherDir = otherDir; | |
} | |
TeeTree.prototype.read = function (readTree) { | |
var otherDir = this.otherDir; |