Merge pull request #3567 from davetayls/feature/marionette-view-getoption

added getOption to view
This commit is contained in:
Masahiro Wakame
2015-02-03 11:53:08 +09:00
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -96,6 +96,7 @@ module Marionette.Tests {
constructor() {
super();
this.getOption<string>('foo');
this.triggers = {
'click .foo': 'bar'
};
+6
View File
@@ -721,6 +721,12 @@ declare module Marionette {
getTemplate(): any;
/**
* Retrieve an object's attribute either directly from the object, or
* from the object's this.options, with this.options taking precedence.
*/
getOption<T>(optionName:string): T;
mixinTemplateHelpers(target?: any): any;
configureTriggers(): any;