ember-testing

ember-testing Module Parent: ember The primary purpose of this class is to create hooks that can be implemented by an adapter for various test frameworks.

Test#unregisterHelper()

unregisterHelper (name) public Defined in packages/ember-testing/lib/test/helpers.js:91 Remove a previously added helper method. Example: Ember.Test.unregisterHelper('wait'); Parameters: name String The helper to remove.

Enumerable#enumerableContentWillChange()

enumerableContentWillChange (removing, adding) private Defined in packages/ember-runtime/lib/mixins/enumerable.js:939 Invoke this method just before the contents of your enumerable will change. You can either omit the parameters completely or pass the objects to be removed or added if available or just a count. Parameters: removing Ember.Enumerable|Number An enumerable of the objects to be removed or the number of items to be removed. adding Ember.Enumerable|Number An enumerable of

Ember.inject.controller()

controller (name) Ember.InjectedPropertypublic Defined in packages/ember-runtime/lib/controllers/controller.js:31 Available since 1.10.0 Creates a property that lazily looks up another controller in the container. Can only be used when defining another controller. Example: App.PostController = Ember.Controller.extend({ posts: Ember.inject.controller() }); This example will create a posts property on the post controller that looks up the posts controller in the container, making it easy t

TextSupport#template

templateFunctionprivate Defined in packages/ember-views/lib/mixins/template_support.js:48 The template used to render the view. This should be a function that accepts an optional context parameter and returns a string of HTML that will be inserted into the DOM relative to its parent view. In general, you should set the templateName property instead of setting the template yourself.

DS.RESTSerializer#extractPolymorphicRelationship()

extractPolymorphicRelationship (relationshipType, relationshipHash, relationshipOptions) Object Inherited from DS.JSONSerializer but overwritten in addon/serializers/rest.js:786 You can use this method to customize how a polymorphic relationship should be extracted. Parameters: relationshipType Object relationshipHash Object relationshipOptions Object Returns: Object

AutoLocation#_getHashPath()

_getHashPathprivate Defined in packages/ember-routing/lib/location/auto_location.js:278

DefaultResolver#resolveModel()

resolveModel (parsedName) protected Defined in packages/ember-application/lib/system/resolver.js:353 Lookup the model on the Application namespace Parameters: parsedName Object a parseName object with the parsed fullName lookup string

Route#render()

render (name, options) public Defined in packages/ember-routing/lib/system/route.js:1820 render is used to render a template into a region of another template (indicated by an {{outlet}}). render is used both during the entry phase of routing (via the renderTemplate hook) and later in response to user interaction. For example, given the following minimal router and templates: Router.map(function() { this.route('photos'); }); <!-- application.hbs --> <div class='something-in-the-

Route#serialize()

serialize (model, params) Objectpublic Defined in packages/ember-routing/lib/system/route.js:1566 A hook you can implement to convert the route's model into parameters for the URL. App.Router.map(function() { this.route('post', { path: '/posts/:post_id' }); }); App.PostRoute = Ember.Route.extend({ model: function(params) { // the server returns `{ id: 12 }` return Ember.$.getJSON('/posts/' + params.post_id); }, serialize: function(model) { // this will make the URL `/p