GithubHelp home page GithubHelp logo

Comments (5)

justinbmeyer avatar justinbmeyer commented on June 19, 2024

You have to return [arr]. Just make it return an array of your array.

from jquerymx.

dimaf avatar dimaf commented on June 19, 2024

yes i saw that comment to proxy method
but this seems strange to me, since now my function needs to know in which context it's being called. if somewhere else i want to call the same function directly it will not be very clean.

But actually how i came to this problem is primary that models method is not working anymore
in such scenario:
success: this.proxy(['models',success]),

i saw in commit 92d8f88
you've commented this line out
// res._use_call = true; //so we don't call next function with all of these
and models method does not wrap the output into an additional array so when i call multiple callbacks they do not pass data properly

so either proxy needs to be fixed or that commented out line should be enabled again

from jquerymx.

justinbmeyer avatar justinbmeyer commented on June 19, 2024

you should no longer be using this.proxy(['models',success]) like that anymore, instead you should be setting the dataType to:

"json recipe.models"

from jquerymx.

justinbmeyer avatar justinbmeyer commented on June 19, 2024

btw, was that documented anywhere to use it like that? I've tried to clean them all from the docs.

from jquerymx.

dimaf avatar dimaf commented on June 19, 2024

Yes in new code we use either simple model definitions or properly setting type as you mentioned in the previous post, and everything works fine

it's just the old code stopped working now after that commit, so I was wondering why

-----Original Message-----
From: Justin Meyer [mailto:[email protected]]
Sent: Mittwoch, 9. November 2011 00:54
To: Khaynatskyy, Dmytro
Subject: Re: [jquerymx] proxy method not properly passing array return parameters (#87)

btw, was that documented anywhere to use it like that? I've tried to clean them all from the docs.


Reply to this email directly or view it on GitHub:
#87 (comment)

from jquerymx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.