backbone.brace.js | |
|---|---|
| |
| node / browser imports, copied from here | undefined |
Helper functions | undefined |
| Given an array, this function will return an object where each property name is an element of the original array. The value of each property will be null. Given anything else, this function will return the object untouched. | undefined |
| Return a value of the specified type, generated from the value parameter.
If type conversion is necessary, this function will generate a new object using
| undefined |
| Returns true if obj is extend()'ed from Backbone.Collection (or from another collection) | undefined |
| obj distantly extends Backbone.Collection (most likely case) | undefined |
| obj directly extends Backbone.Collection (e.g., Brace.Collection) !(fn.prototype instanceof fn), so the above check doesn't catch this case. | undefined |
| obj is Backbone.Collection | undefined |
| array-like is currently defined by "has a length property, and is not a string or function or Backbone.Collection." Backbone.Collections are excluded because you can't do collection[0] to access models. | undefined |
| With namedAttributes, we want to allow both the mixin, and the extender to define types. We want to take the stricter of the two types where possible. Where the types conflict, throw an error. | undefined |
| One type assumes another when the conditions for meeting its
type-check are a super set of the assumed type's conditions.
E.g., | undefined |
| if it's a string, only the previous strict equality check would have sufficed. | undefined |
Brace.MixinsMixin utilities | undefined |
| Creates a camelCased method name | undefined |
| Applies a mixin to the given constructor's prototype. | undefined |
|
| undefined |
|
| undefined |
|
| undefined |
|
| undefined |
|
| undefined |
|
| undefined |
| Name collisions with other mixins or or the object we're mixing into result in violent and forceful disapproval. | undefined |
Brace.AttributesMixinCreator | undefined |
| Creates a mixin of getter and setter methods for each item in the given attribute list.
A getter and setter for | undefined |
| TODO: has, escape, unset | undefined |
Brace.EventsMixinCreator | undefined |
| Creates a mixin of on and trigger methods for each item in the given list of events. | undefined |
| TODO: off | undefined |
| Generates an
| undefined |
| Remove | undefined |
| Overrides Backbone's | undefined |
| TODO: has, escape, unset | undefined |
| Applies extensions to the given constructor function. Sets | undefined |
| Applies extensions to the given constructor function. Sets | undefined |
| Extend base Backbone classes | undefined |