Is there a function like jQuery extend implemented anywhere in haxe?

34 views
Skip to first unread message

BP

unread,
May 23, 2013, 7:47:36 AM5/23/13
to haxe...@googlegroups.com
Hey! I've been using anonymous objects a bit

   var o = { age : 26, name : "Tom" };

and got to wondering if there's any existing implementations of a jquery extend like function for haxe for CPP/Flash targets?

var object1 = {
  apple: 0,
  banana: {weight: 52, price: 100},
  cherry: 97
};

var object2 = {
  banana: {price: 200},
  durian: 100
};

/* merge object2 into object1 */
$.extend(object1, object2);

now object1.durian == 100, etc.

Thanks!


Rocks Wang

unread,
May 23, 2013, 11:50:41 AM5/23/13
to haxe...@googlegroups.com
You can take a look into my CSS selectors engine HxQuery, it's on Github: https://github.com/rockswang/hxquery

在 2013年5月23日星期四UTC+8下午7时47分36秒,BP写道:

Rocks Wang

unread,
May 23, 2013, 11:50:51 AM5/23/13
to haxe...@googlegroups.com
You can take a look into my CSS selectors engine HxQuery, it's on Github: https://github.com/rockswang/hxquery

在 2013年5月23日星期四UTC+8下午7时47分36秒,BP写道:
Hey! I've been using anonymous objects a bit

Rocks Wang

unread,
May 23, 2013, 11:51:02 AM5/23/13
to haxe...@googlegroups.com
You can take a look into my CSS selectors engine HxQuery, it's on Github: https://github.com/rockswang/hxquery

在 2013年5月23日星期四UTC+8下午7时47分36秒,BP写道:
Hey! I've been using anonymous objects a bit

Rocks Wang

unread,
May 23, 2013, 11:51:35 AM5/23/13
to haxe...@googlegroups.com
You can take a look into my CSS selectors engine HxQuery, it's on Github: https://github.com/rockswang/hxquery

在 2013年5月23日星期四UTC+8下午7时47分36秒,BP写道:
Hey! I've been using anonymous objects a bit
Reply all
Reply to author
Forward
0 new messages