[Core] Add specs for action support
Add specs for core components for dealing with actions; part of ongoing platform/core transition, WTD-573.
This commit is contained in:
@@ -32,7 +32,7 @@ define(
|
||||
// declarative bindings, as well as context,
|
||||
// unless the action has defined its own.
|
||||
if (!action.getMetadata) {
|
||||
metadata = Object.create(Action.definition);
|
||||
metadata = Object.create(Action.definition || {});
|
||||
metadata.context = context;
|
||||
action.getMetadata = function () {
|
||||
return metadata;
|
||||
|
||||
Reference in New Issue
Block a user