@fetch_association(route, cxt, {\r
success: (association_item, options) =>\r
options.success.call(context, association_item)\r
+ fail: (response, opt) =>\r
+ options.fail.call(context, response, opt)\r
context: context,\r
options: options\r
})\r
@fetch_association(route, this, {\r
success: (association_item, options) =>\r
association_item.get_association(routes, this, options)\r
+ fail: (response, opt) =>\r
+ options.fail.call(context, response, opt)\r
context: context,\r
options: options\r
})\r
fetch_options = {\r
success: (association_item) =>\r
options.success.call(context, association_item, options.options)\r
+ fail: (response, opt) =>\r
+ options.fail.call(context, response, opt)\r
}\r
if a.belongs_to[name]\r
@get_parent(name, context, fetch_options)\r
callback = options.success\r
item = items[0]\r
callback.call(context, item)\r
+ fail: (response, opt) =>\r
+ options.fail.call(context, response, opt)\r
})\r
\r
get_children: (has_many_name, context, options = null) ->\r
success: (items) =>\r
callback = options.success\r
callback.call(context, items)\r
+ fail: (response, opt) =>\r
+ options.fail.call(context, response, opt)\r
})\r
\r
has_many: (has_many_name) ->\r
@get_association(routes, this, {\r
success: (association) => \r
options.success.call(context, association)\r
+ fail: (response, opt) =>\r
+ options.fail.call(context, response, opt)\r
})\r
\r
boosts: (level) ->\r
@trace_to('symbol', this, {\r
success: (symbol_item) => \r
options.success.call(context, symbol_item.symbol_file())\r
+ fail: (response, opt) =>\r
+ options.fail.call(context, response, opt)\r
})\r
\r
@face_file: () ->\r