Class RandomButtonView
Extends
Backbone.View.
RandomButtonView
Defined in: randombuttonview.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Random comment generator button
|
Field Attributes | Field Name and Description |
---|---|
The map of delegated event handlers
|
Method Attributes | Method Name and Description |
---|---|
Click event handler that creates 5 new comment models with random texts
|
|
Initialize view, make sure button has a comment collection to work with
|
Field Detail
{Object}
events
The map of delegated event handlers
Method Detail
{Boolean}
createComment()
Click event handler that creates 5 new comment models with random texts
- Returns:
- {Boolean} Returns false to stop propagation
initialize()
Initialize view, make sure button has a comment collection to work with