Js output bind issue (or nor??).

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Js output bind issue (or nor??).

sledorze
I can no more replace this:

    var withMongoDb = function (x) db.deliverTo(x);

with this:

    var withMongoDb = db.deliverTo;    

the former generates this:

        var withMongoDb = db.deliverTo.$bind(db);

and when starting nodeJs, it complains that '$bind' do not exists.
However, replacing $bind with bind it looks like to work.
I'm not sure why we use '$bind' in the first place; I've just read :
http://www.prototypejs.org/api/function/bind (you know.. Js is a lang you compile to.. :p )

Looks strange to me as there are other instances of $bind usage that do not appears to create any issue.. (!??)
Any information would help..
Stephane

Reply | Threaded
Open this post in threaded view
|

Re: Js output bind issue (or nor??).

Skial Bainn
Isn't $bind from the latest nightly build? If it is, have you updated the standard library as well?

On Tue, Oct 18, 2011 at 1:03 PM, sledorze <[hidden email]> wrote:
I can no more replace this:

   var withMongoDb = function (x) db.deliverTo(x);

with this:

   var withMongoDb = db.deliverTo;

the former generates this:

       var withMongoDb = db.deliverTo.$bind(db);

and when starting nodeJs, it complains that '$bind' do not exists.
However, replacing $bind with bind it looks like to work.
I'm not sure why we use '$bind' in the first place; I've just read :
http://www.prototypejs.org/api/function/bind (you know.. Js is a lang you
compile to.. :p )

Looks strange to me as there are other instances of $bind usage that do not
appears to create any issue.. (!??)
Any information would help..
Stephane



--
View this message in context: http://haxe.1354130.n2.nabble.com/Js-output-bind-issue-or-nor-tp6904326p6904326.html
Sent from the Haxe mailing list archive at Nabble.com.

--
haXe - an open source web programming language
http://haxe.org



--
Skial



--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: Js output bind issue (or nor??).

sledorze
Not the lastest but a récent one. Yes i always update both simultaneously. I'll come back to my machine soon. Should i try the nightly? Wasn't that expected??

Sent from my iPhone

On 18 oct. 2011, at 16:45, "Skial Bainn [via Haxe]" <[hidden email]> wrote:

Isn't $bind from the latest nightly build? If it is, have you updated the standard library as well?

On Tue, Oct 18, 2011 at 1:03 PM, sledorze <[hidden email]> wrote:
I can no more replace this:

   var withMongoDb = function (x) db.deliverTo(x);

with this:

   var withMongoDb = db.deliverTo;

the former generates this:

       var withMongoDb = db.deliverTo.$bind(db);

and when starting nodeJs, it complains that '$bind' do not exists.
However, replacing $bind with bind it looks like to work.
I'm not sure why we use '$bind' in the first place; I've just read :
http://www.prototypejs.org/api/function/bind (you know.. Js is a lang you
compile to.. :p )

Looks strange to me as there are other instances of $bind usage that do not
appears to create any issue.. (!??)
Any information would help..
Stephane



--
View this message in context: http://haxe.1354130.n2.nabble.com/Js-output-bind-issue-or-nor-tp6904326p6904326.html
Sent from the Haxe mailing list archive at Nabble.com.

--
haXe - an open source web programming language
http://haxe.org



--
Skial



--
haXe - an open source web programming language
http://haxe.org


If you reply to this email, your message will be added to the discussion below:
http://haxe.1354130.n2.nabble.com/Js-output-bind-issue-or-nor-tp6904326p6904905.html
To unsubscribe from Js output bind issue (or nor??)., click here.
Reply | Threaded
Open this post in threaded view
|

Re: Js output bind issue (or nor??).

sledorze
In reply to this post by Skial Bainn
With last trunk, same stuf..

On Tue, Oct 18, 2011 at 5:18 PM, Stephane Le Dorze <[hidden email]> wrote:
Not the lastest but a récent one. Yes i always update both simultaneously. I'll come back to my machine soon. Should i try the nightly? Wasn't that expected??

Sent from my iPhone

On 18 oct. 2011, at 16:45, "Skial Bainn [via Haxe]" <[hidden email]> wrote:

Isn't $bind from the latest nightly build? If it is, have you updated the standard library as well?

On Tue, Oct 18, 2011 at 1:03 PM, sledorze <[hidden email]> wrote:
I can no more replace this:

   var withMongoDb = function (x) db.deliverTo(x);

with this:

   var withMongoDb = db.deliverTo;

the former generates this:

       var withMongoDb = db.deliverTo.$bind(db);

and when starting nodeJs, it complains that '$bind' do not exists.
However, replacing $bind with bind it looks like to work.
I'm not sure why we use '$bind' in the first place; I've just read :
http://www.prototypejs.org/api/function/bind (you know.. Js is a lang you
compile to.. :p )

Looks strange to me as there are other instances of $bind usage that do not
appears to create any issue.. (!??)
Any information would help..
Stephane



--
View this message in context: http://haxe.1354130.n2.nabble.com/Js-output-bind-issue-or-nor-tp6904326p6904326.html
Sent from the Haxe mailing list archive at Nabble.com.

--
haXe - an open source web programming language
http://haxe.org



--
Skial



--
haXe - an open source web programming language
http://haxe.org


If you reply to this email, your message will be added to the discussion below:
http://haxe.1354130.n2.nabble.com/Js-output-bind-issue-or-nor-tp6904326p6904905.html
To unsubscribe from Js output bind issue (or nor??)., click here.



--
Stéphane Le Dorze