For the record: (.log js/console obj1 obj2 ...)

On Wed, May 16, 2012 at 2:25 PM, David Nolen <dnolen.li...@gmail.com> wrote:
> Just console.log the object directly. Chrome will give you something
> inspectable at the JS console.
>
>
> On Wednesday, May 16, 2012, Murtaza Husain wrote:
>>
>> Hi,
>>
>> I am trying to use domina for listening to an event -
>>
>>  (listen! (sel "#password") :keydown (fn [ev]
>>                                                             (log (pr-str
>> ev)))
>>
>> log is a funciton which uses chrome's console.log.
>>
>> a) The pr-str just prints "object" instead of its properties. How do I
>> print the object's properties?
>>
>> b) I also tried the following -
>>  (listen! el1 :keydown (fn [ev]
>>                             (log (ev :which))))
>> In this the return of which is undefined, however it should correspond to
>> keydown value. am I doing somehting wrong?
>>
>> Thanks,
>> Murtaza
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clojure@googlegroups.com
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Moritz Ulrich

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to