<commit_before>Backbone View Stack
==================

Backbone View Stack is a simple way to manage the view into web and mobile application. It is based entirely on a navigation stack.



![View Stack](ViewStack.png)



## Demo

Coming soon...

## Dependencies

* Underscore
* Backbone

## Installation

    $ bower install backbone.viewstack --save

## API

### initialize([options])
It's the initialize of Backbone.View.

Options:

- `context` this is the context of the application. It's a global object of the application. We suggest using the package `$ bower install context-utils --save`.
- `zIndex` is the base value from where the ViewStack to increase the z-index. Default: `0`.
- `zIndexGap` is the value that indicates how much must increase the z-index for each `pushView`. Default: `100`.


### initStack
Initialize stack emptying it from view.

### clearStack([length])
It cleans up the stack up to a certain index. The `length` parameter is optional. Default: `0`.

### size
Return the total of views contained into stack.

### exists(classType)
Checks if there is at least one view within the stack with the `classType`.

### indexOf(view)
Return the stack index of a given instance of view.

### getView
Return the last view.

### getViewActive
Return the active view.
Ritorna la view attiva. It can be active only one view.

### getViewAtIndex(index)
Return the view at index.
<commit_msg>Update documentation<commit_after>Backbone View Stack
==================

Backbone View Stack is a simple way to manage the view into web and mobile application. It is based entirely on a navigation stack.



![View Stack](ViewStack.png)



## Demo

Coming soon...

## Dependencies

* Underscore
* Backbone

## Installation

    $ bower install backbone.viewstack --save

## API

### initialize([options])
It's the initialize of Backbone.View.

Options:

- `context` this is the context of the application. It's a global object of the application. We suggest using the package `$ bower install context-utils --save`.
- `zIndex` is the base value from where the ViewStack to increase the z-index. Default: `0`.
- `zIndexGap` is the value that indicates how much must increase the z-index for each `pushView`. Default: `100`.


### initStack
Initialize stack emptying it from view.

### clearStack([length])
It cleans up the stack up to a certain index. The `length` parameter is optional. Default: `0`. Trigger `clear` event.

### size
Return the total of views contained into stack.

### exists(classType)
Checks if there is at least one view within the stack with the `classType`.

### indexOf(view)
Return the stack index of a given instance of view.

### getView
Return the last view.

### getViewActive
Return the active view.
Ritorna la view attiva. It can be active only one view.

### getViewAtIndex(index)
Return the view at index.

{'fraction_non_alphanumeric': 0.10140350877192983, 'fraction_numerical': 0.0035087719298245615, 'mean_word_length': 4.054964539007092, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6900006', 'n_tokens_mistral': 809, 'n_tokens_neox': 780, 'n_words': 386}