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 Project = DS.Model.extend({ | |
userCounter: DS.attr('number'), // provides the value of project.users.length without requiring fetching | |
users: DS.hasMany('user', {async: true}) // links --> /project/:id/users | |
}); | |
var User = DS.Model.extend({ | |
project: DS.belongsTo('project', {async: true}) | |
}); |
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 el1, el2, | |
hammer1, hammer2, | |
event; | |
module("Hammer Integration - Multiple Gestures", { | |
setup: function() { | |
el1= document.getElementById('toucharea1'); | |
el2= document.getElementById('toucharea2'); | |
hammer1 = new Hammer(el1); | |
hammer2 = new Hammer(el2); |
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
#!/usr/bin/env node | |
var exec = require('child_process').exec, | |
rmdir = require('rimraf'), | |
outputPath = 'public'; | |
rmdir(outputPath, function(error){ |
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 features = match('.', 'ember_features.json'); | |
emberModules = defeatureifyFilter2([features, emberModules]); |
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 AnimatedLayoutComponent = Ember.Component.extend({ | |
action: 'animationEnd', | |
animatedProperties: null, | |
transitionEnd: function(evt) { | |
var animatedProperties = this.get('animatedProperties').split(' '); | |
var propertyName = evt.originalEvent.propertyName; | |
if (animatedProperties.indexOf(propertyName) !== -1) { |
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 Promise from 'rsvp/promise'; | |
var HandlerInfo = requireModule("router/handler-info")['HandlerInfo']; | |
var bind = requireModule("router/utils").bind; | |
HandlerInfo.prototype.resolve = function(async, shouldContinue, payload) { | |
var checkForAbort = bind(this.checkForAbort, this, shouldContinue), | |
beforeModel = bind(this.runBeforeModelHook, this, async, payload), | |
model = bind(this.getModel, this, async, payload), | |
afterModel = bind(this.runAfterModelHook, this, async, payload), | |
animation = bind(this.runAnimationHook, this, async, payload), |
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
// Component which send `animationEnd` action when | |
// a transitionEnd event is fired in a property defined included at `animatedProperties` | |
var AnimatedLayoutComponent = Ember.Component.extend({ | |
action: 'animationEnd', | |
animatedProperties: null, | |
transitionEnd: function(evt) { | |
var animatedProperties = this.get('animatedProperties').split(' '); |
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("create - a sideloaded record with a belongsTo relationship to the primary record should not fetch the relationship", function() { | |
expect(3); | |
var postName = "Rails is omasake"; | |
ajaxResponse({ | |
post: [{ | |
id: "1", | |
name: postName | |
}], |
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("update - a sideloaded record with a relationship to the primary record should not fetch the relationship record", function() { | |
expect(4); | |
var postName = "Rails is omasake"; | |
var postName2 = "EmberJS is omasake"; | |
ajaxResponse({ | |
post: [{ | |
id: "1", | |
name: postName |
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
Remote Address:46.137.168.22:443 | |
Request URL:https://production-cybersource-invibe.herokuapp.com/payment_confirmation | |
Request Method:POST | |
Status Code:200 OK | |
**Request Headersview source** | |
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 |
OlderNewer