Class Index | File Index

Classes


Class NewButtonView


Extends Backbone.View.
NewButtonView
Defined in: newbuttonview.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
New comment creation button
Field Summary
Field Attributes Field Name and Description
 
The map of delegated event handlers
Method Summary
Method Attributes Method Name and Description
 
Click event handler that first creates a new empty comment model, and assigns the model to a FormView instance.
 
Method to handle FormView success event
 
Initialize view, make sure button has a comment collection to work with
Class Detail
NewButtonView()
New comment creation button
Author: Bodnar Istvan .
Field Detail
{Object} events
The map of delegated event handlers
Method Detail
{Boolean} createComment()
Click event handler that first creates a new empty comment model, and assigns the model to a FormView instance. FormView will handle internally new comment creation and existing comment editing.
Returns:
{Boolean} Returns false to stop propagation

handleFormSuccess(model)
Method to handle FormView success event
Parameters:
{CommentModel} model
Model data returned by FormViews save request

initialize()
Initialize view, make sure button has a comment collection to work with

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Jul 10 2012 11:17:08 GMT+0200 (CEST)