recursion is not finding deep children target syntax
Closed this issue · 1 comments
ChetHarrison commented
Running is on Marionette returns
Generating syntax tree: input/js/marionette.application.js
Saving syntax tree: output/marionette.application.json
Generating syntax tree: input/js/marionette.approuter.js
Saving syntax tree: output/marionette.approuter.json
Generating syntax tree: input/js/marionette.behavior.js
Saving syntax tree: output/marionette.behavior.json
Behavior
description: |
@param {type} options - <param description>
@param {type} view - <param description>
examples:
-
name: Function Body
example: |
```js
{
this.view = view;
this.defaults = _.result(this, 'defaults') || {};
this.options = _.extend({}, this.defaults, options);
this.$ = function () {
return this.view.$.apply(this.view, arguments);
};
this.initialize.apply(this, arguments);
}
```
Generating syntax tree: input/js/marionette.behaviors.js
Saving syntax tree: output/marionette.behaviors.json
Behaviors
description: |
@param {type} view - <param description>
@param {type} behaviors - <param description>
examples:
-
name: Function Body
example: |
```js
{
if (!_.isObject(view.behaviors)) {
return {};
}
behaviors = Behaviors.parseBehaviors(view, behaviors || _.result(view, 'behaviors'));
Behaviors.wrap(view, behaviors, _.keys(methods));
return behaviors;
}
```
BehaviorTriggersBuilder
description: |
@param {type} view - <param description>
@param {type} behaviors - <param description>
examples:
-
name: Function Body
example: |
```js
{
this._view = view;
this._viewUI = _.result(view, 'ui');
this._behaviors = behaviors;
this._triggers = {};
}
```
Generating syntax tree: input/js/marionette.bindEntityEvents.js
Saving syntax tree: output/marionette.bindEntityEvents.json
bindFromStrings
description: |
@param {type} target - <param description>
@param {type} entity - <param description>
@param {type} evt - <param description>
@param {type} methods - <param description>
examples:
-
name: Function Body
example: |
```js
{
var methodNames = methods.split(/\s+/);
_.each(methodNames, function (methodName) {
var method = target[methodName];
if (!method) {
throw new Marionette.Error('Method "' + methodName + '" was configured as an event handler, but does not exist.');
}
target.listenTo(entity, evt, method);
});
}
```
bindToFunction
description: |
@param {type} target - <param description>
@param {type} entity - <param description>
@param {type} evt - <param description>
@param {type} method - <param description>
examples:
-
name: Function Body
example: |
```js
{
target.listenTo(entity, evt, method);
}
```
unbindFromStrings
description: |
@param {type} target - <param description>
@param {type} entity - <param description>
@param {type} evt - <param description>
@param {type} methods - <param description>
examples:
-
name: Function Body
example: |
```js
{
var methodNames = methods.split(/\s+/);
_.each(methodNames, function (methodName) {
var method = target[methodName];
target.stopListening(entity, evt, method);
});
}
```
unbindToFunction
description: |
@param {type} target - <param description>
@param {type} entity - <param description>
@param {type} evt - <param description>
@param {type} method - <param description>
examples:
-
name: Function Body
example: |
```js
{
target.stopListening(entity, evt, method);
}
```
iterateEvents
description: |
@param {type} target - <param description>
@param {type} entity - <param description>
@param {type} bindings - <param description>
@param {type} functionCallback - <param description>
@param {type} stringCallback - <param description>
examples:
-
name: Function Body
example: |
```js
{
if (!entity || !bindings) {
return;
}
if (!_.isFunction(bindings) && !_.isObject(bindings)) {
throw new Marionette.Error({
message: 'Bindings must be an object or function.',
url: 'marionette.functions.html#marionettebindentityevents'
});
}
if (_.isFunction(bindings)) {
bindings = bindings.call(target);
}
_.each(bindings, function (methods, evt) {
if (_.isFunction(methods)) {
functionCallback(target, entity, evt, methods);
} else {
stringCallback(target, entity, evt, methods);
}
});
}
```
Generating syntax tree: input/js/marionette.callbacks.js
Saving syntax tree: output/marionette.callbacks.json
Generating syntax tree: input/js/marionette.collectionview.js
Saving syntax tree: output/marionette.collectionview.json
Generating syntax tree: input/js/marionette.compositeview.js
Saving syntax tree: output/marionette.compositeview.json
Generating syntax tree: input/js/marionette.controller.js
Saving syntax tree: output/marionette.controller.json
Generating syntax tree: input/js/marionette.domRefresh.js
Saving syntax tree: output/marionette.domRefresh.json
handleShow
description: |
@param {type} view - <param description>
examples:
-
name: Function Body
example: |
```js
{
view._isShown = true;
triggerDOMRefresh(view);
}
```
handleRender
description: |
@param {type} view - <param description>
examples:
-
name: Function Body
example: |
```js
{
view._isRendered = true;
triggerDOMRefresh(view);
}
```
triggerDOMRefresh
description: |
@param {type} view - <param description>
examples:
-
name: Function Body
example: |
```js
{
if (view._isShown && view._isRendered && isInDOM(view)) {
if (_.isFunction(view.triggerMethod)) {
view.triggerMethod('dom:refresh');
}
}
}
```
isInDOM
description: |
@param {type} view - <param description>
examples:
-
name: Function Body
example: |
```js
{
return Backbone.$.contains(documentElement, view.el);
}
```
Generating syntax tree: input/js/marionette.error.js
Saving syntax tree: output/marionette.error.json
Generating syntax tree: input/js/marionette.helpers.js
Saving syntax tree: output/marionette.helpers.json
Generating syntax tree: input/js/marionette.itemview.js
Saving syntax tree: output/marionette.itemview.json
Generating syntax tree: input/js/marionette.layoutview.js
Saving syntax tree: output/marionette.layoutview.json
Generating syntax tree: input/js/marionette.module.js
Saving syntax tree: output/marionette.module.json
Generating syntax tree: input/js/marionette.object.js
Saving syntax tree: output/marionette.object.json
Generating syntax tree: input/js/marionette.region.js
Saving syntax tree: output/marionette.region.json
Generating syntax tree: input/js/marionette.regionManager.js
Saving syntax tree: output/marionette.regionManager.json
Generating syntax tree: input/js/marionette.renderer.js
Saving syntax tree: output/marionette.renderer.json
Generating syntax tree: input/js/marionette.templatecache.js
Saving syntax tree: output/marionette.templatecache.json
Generating syntax tree: input/js/marionette.triggermethod.js
Saving syntax tree: output/marionette.triggermethod.json
getEventName
description: |
@param {type} match - <param description>
@param {type} prefix - <param description>
@param {type} eventName - <param description>
examples:
-
name: Function Body
example: |
```js
{
return eventName.toUpperCase();
}
```
Generating syntax tree: input/js/marionette.view.js
Saving syntax tree: output/marionette.view.json
ChetHarrison commented
I was wrong. not all functions are typed FunctionDeclairation
.