Chaining question

11 views
Skip to first unread message

Artem Avetisyan

unread,
Mar 15, 2013, 7:15:48 PM3/15/13
to pogos...@googlegroups.com

How would this look in pogo?

  $('.plane').append($('<div>', {class: 'content'}).text(messages[0]))

Tim Macfarlane

unread,
Mar 15, 2013, 10:06:11 PM3/15/13
to Artem Avetisyan, pogos...@googlegroups.com
$ '.plane'.append ($ ('<div>', class: 'content').text (messages.(0)))


On 15 Mar 2013, at 23:15, Artem Avetisyan <arte...@gmail.com> wrote:

How would this look in pogo?

  $('.plane').append($('<div>', {class: 'content'}).text(messages[0]))

--
You received this message because you are subscribed to the Google Groups "pogoscript" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pogoscript+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Artem Avetisyan

unread,
Mar 16, 2013, 7:14:05 AM3/16/13
to pogos...@googlegroups.com, Artem Avetisyan
Thanks! 

Perhaps a complex example like this would be a good addition to cheat sheet.

Tim Macfarlane

unread,
Mar 16, 2013, 7:32:59 AM3/16/13
to Artem Avetisyan, pogos...@googlegroups.com
Absolutely! Throw me a pull request, or otherwise I'll be happy to do it later this evening.
Reply all
Reply to author
Forward
0 new messages