javascript - Pass result of a function back to itself in Ember.js controller -


I have a function that I want to use to load and use Linux and Vanilla JavaScript. I give it a value, checks to see that the value has been mapped in advance, and then checks to see that there are special properties in the value. If this happens, then it is the child through the same function The property passes.

I am trying to do the same thing essentially in an amber app, but the function is an asset in an administrator. When I try to reference the name of the function, I get an error: "Unwanted reference reference: The collection header is not a function". How can I pass the results of "Collect Headers (Hair)" back to the function?

Just Land & amp; Javascript where it works:

  Function Called Headers (original) {var firstchild = parent.children? mother-father. Children [0]: {}; If (firstChild.section_type & amp; firstchild.section_value) {_.forEach (parents, children, functions (children) {collectHeaders (children)}); } Else if (parent.children) {// more code}}   

Enter Amber.App Administrator:

  var mapping = {}; Var compareController = Ember.ObjectController.extend ({collectHeaders: function (parent) {var firstChild = parent.children? Parent.children [0]: {}; if (first child.section_type & amp; amp; firstchild. Section_value) {_ (parent, child, work) (gather) (child);});} and if (parent's child) {// more code}},}); Export Default Compare Controller;  

Your code is out of range, your previous task was global < Ex> Gather header: function (original) {var self = this; Var firstchild = parent.children? mother-father. Children [0]: {}; If (firstChild.section_type & amp; amp; firstchild.section_value) {_.forEach (child., Function (children) {self.collectHeaders (child);}); } And if (parent's child) {// more code}},});

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -