From 41bdbf513ac279b663247a42edca9871fcbad324 Mon Sep 17 00:00:00 2001 From: Micah Zoltu Date: Sat, 4 Jul 2015 23:41:37 -0700 Subject: [PATCH] refactor(decorators): made method parameters optional --- src/decorators.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/decorators.js b/src/decorators.js index e8077330..160dc9ff 100644 --- a/src/decorators.js +++ b/src/decorators.js @@ -57,7 +57,7 @@ export function templateController(target){ Decorators.configure.simpleDecorator('templateController', templateController); -export function bindable(nameOrConfigOrTarget, key, descriptor){ +export function bindable(nameOrConfigOrTarget?, key?, descriptor?){ var deco = function(target, key, descriptor){ var actualTarget = key ? target.constructor : target, //is it on a property or a class? resource = Metadata.getOrCreateOwn(Metadata.resource, HtmlBehaviorResource, actualTarget),