added getOption to view

This commit is contained in:
davetayls
2015-01-29 09:28:44 +00:00
parent 338059f48e
commit 1bcd371e60
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;