<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3103554217217191353</id><updated>2024-03-14T09:31:08.924+01:00</updated><category term="web development"/><category term="jQuery"/><category term="Javascript"/><category term="jsfiddle"/><category term="php"/><category term="Array manipulation"/><category term="Best of 2012"/><category term="Borsa"/><category term="Distinct values"/><category term="Indie"/><category term="Music"/><category term="Objects manipulation"/><category term="Porcelain raft"/><category term="bloggin"/><category term="code syntax highlighting"/><category term="events"/><category term="facebook like"/><category term="google plus"/><category term="investimenti"/><category term="jasmine"/><category term="php facebook facebook-php-sdk facebook-multiqueries facebook-api"/><category term="rails"/><category term="rails composer"/><category term="tappetino"/><category term="twitter"/><category term="unit-tests"/><title type='text'>Code &#39;n&#39; Roll</title><subtitle type='html'>A Blog about programming and Rock&#39;n&#39;Roll</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://newcodeandroll.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3103554217217191353/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://newcodeandroll.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>nicola peluchetti</name><uri>http://www.blogger.com/profile/01450021150020641208</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3103554217217191353.post-3244003914032735728</id><published>2014-10-31T01:52:00.001+01:00</published><updated>2014-10-31T01:52:35.314+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="rails"/><category scheme="http://www.blogger.com/atom/ns#" term="rails composer"/><title type='text'>How to use Rails Composer to create a rails app on Windows 7 64 bit</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a href=&quot;http://railsapps.github.io/rails-composer/&quot; target=&quot;_blank&quot;&gt;Rails Composer&lt;/a&gt; is a great tool that helps you by creating a rails app with some standard configuration. Usually i start with &lt;a href=&quot;https://github.com/RailsApps/rails-devise-pundit&quot; target=&quot;_blank&quot;&gt;Devise, Pundit, Simple Forms and Bootstrap 3.2&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
But as usual it throws some common errors, some of which are really specific to Windows 7 64 bit.&lt;br /&gt;
&lt;br /&gt;
First you should &lt;a href=&quot;http://rubyinstaller.org/downloads/&quot; target=&quot;_blank&quot;&gt;install ruby&lt;/a&gt;. I have version 2.0 installed. Follow instruction to also allow compilation of gems.&lt;br /&gt;
&lt;br /&gt;
So let&#39;s say you start composer by running&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;rails new rvsp -m https://raw.github.com/RailsApps/rails-composer/master/composer.rb&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The first error you will probably see is something like:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;C:/Ruby200-x64/lib/ruby/2.0.0/net/http.rb:918:in `connect&#39;: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
This is cause by a ssl error. The solution is detailed &lt;a href=&quot;http://railsapps.github.io/openssl-certificate-verify-failed.html&quot; target=&quot;_blank&quot;&gt;in this article&lt;/a&gt;. What worked for me is downloading the cacert.pem file from &lt;a href=&quot;http://curl.haxx.se/ca/cacert.pem&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;&amp;nbsp;( put it in your Ruby install folder ) and then run from the command prompt&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;set SSL_CERT_FILE=C:\Ruby200-x64\cacert.pem&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
this should fix it.&lt;br /&gt;
&lt;br /&gt;
Then you will face the most dreaded problem, tzinfo. It will manifest itself when trying to access the db because rails will be run. You will see an error message like:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;lib/ruby/gems/2.0.0/gems/tzinfo-1.2.2/lib/tzinfo/data_source.rb:182:in `rescue in create_default_data_source&#39;: No source of timezone data could be found. (TZInfo::DataSourceNotFound)&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
To solve this you must do the following:&lt;br /&gt;
&lt;br /&gt;
1) after composer has started creating files, open your gemfile with a web editor and change the line&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;gem &#39;tzinfo-data&#39;, platforms: [:mingw, :mswin]&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
to&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
gem &#39;tzinfo&#39;&lt;br /&gt;
gem &#39;tzinfo-data&#39;, platforms: [:mingw, :mswin, :x64_mingw]&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
so you must add a gem and add x64 support&lt;br /&gt;
&lt;br /&gt;
2) when the command prompts you for the database user, OPEN ANOTHER COMMAND PROMPT and cd into the folder where the app is and type the following&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
cd c:\appname&lt;br /&gt;
bundle install&lt;br /&gt;
bundle update&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
3) return to the other command prompt and enter the db credentials and you will be fine&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
hope this saves you some time.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://newcodeandroll.blogspot.com/feeds/3244003914032735728/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://newcodeandroll.blogspot.com/2014/10/how-to-use-rails-composer-to-create.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3103554217217191353/posts/default/3244003914032735728'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3103554217217191353/posts/default/3244003914032735728'/><link rel='alternate' type='text/html' href='http://newcodeandroll.blogspot.com/2014/10/how-to-use-rails-composer-to-create.html' title='How to use Rails Composer to create a rails app on Windows 7 64 bit'/><author><name>nicola peluchetti</name><uri>http://www.blogger.com/profile/01450021150020641208</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3103554217217191353.post-2360685330000857611</id><published>2013-04-03T17:18:00.002+02:00</published><updated>2013-04-03T17:18:59.039+02:00</updated><title type='text'>Come fare una ricetta medica falsa</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Premesso che fare una ricetta medica falsa è un &lt;a href=&quot;http://messaggeroveneto.gelocal.it/cronaca/2012/10/05/news/uso-una-ricetta-falsa-per-avere-i-farmaci-5-mesi-di-carcere-1.5813187&quot; target=&quot;_blank&quot;&gt;reato punibile dalla legge&lt;/a&gt;&amp;nbsp;e che i farmaci vanno utilizzati con molta attenzione, poichè danno &lt;a href=&quot;http://www.nopazzia.it/psicofarm/benzodiazepine.html&quot; target=&quot;_blank&quot;&gt;fortissima dipendenza ed effetti collaterali anche gravi&lt;/a&gt;, vorrei spiegarvi che fare una ricetta medica falsa è abbastanza facile.&lt;br /&gt;
La ricetta vi viene normalmente data dal vostro medico per farmaci che possono avere effetti collaterali anche gravi e serve al farmacista per essere tutelato. In pratica, se voi morite dopo aver preso un farmaco, se il farmacista ve lo ha prescritto senza ricetta, potrebbe essere responsabile della vostra morte e quindi teoricamente perseguibile.&lt;br /&gt;
In pratica una ricetta è semplicemente un foglio grande un quarto di un A4 con una intestazione e l&#39;indirizzo di uno studio. Potete trovare degli esempi di ricettari medici facilmente su &lt;a href=&quot;http://nuovadelgraf.com/stampa/medici-dottori/stampa-ricettari-medici.html&quot; target=&quot;_blank&quot;&gt;internet&lt;/a&gt;. Come nome, del medico, inventate pure, l&#39;importante è che sia credibile.&lt;br /&gt;
Con una stampante e un po&#39; di pazienza potete avere il vostro ricettario medico base in una mezz&#39;ora. In realtà il ricettario e una biro bastano e avanzano per la maggior parte dei casi, ma vi consiglio di aggiungere un tocco di professionalità in più e investire anche una decina di euro per un &lt;a href=&quot;http://www.timbrietimbri.it/&quot; target=&quot;_blank&quot;&gt;timbro&lt;/a&gt;&amp;nbsp;ove riportare le generalità del medico.&lt;br /&gt;
A questo punto, armatevi di una biro e scrivete la vostra ricetta/certificato medico di buona salute, è abbastanza facile, basta indicare sulla ricetta Nome, Cognome e data di nascita del paziente, nome del medicinale e principio attivo e posologia. Fate uno scarabocchio come firma, mettete un timbro e andate da un farmacista ( magari non chiedendo 5 boccette di minias in una sola volta ) e non avrete problemi.&lt;br /&gt;
Lo stesso vale per risparmiare 40€ di certificato medico di buona salute.&lt;br /&gt;
DISCLAIMER&lt;br /&gt;
Come detto io non incito nessuno ad andare contro la legge o ad assumere farmaci ( ho avuto io stesso problemi con i farmaci ), se poi finite dipendenti dalle benzodiazepine o avete un infarto in palestra, la colpa sarà solo vostra, usate il buon senso.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://newcodeandroll.blogspot.com/feeds/2360685330000857611/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://newcodeandroll.blogspot.com/2013/04/come-fare-una-ricetta-medica-falsa.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3103554217217191353/posts/default/2360685330000857611'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3103554217217191353/posts/default/2360685330000857611'/><link rel='alternate' type='text/html' href='http://newcodeandroll.blogspot.com/2013/04/come-fare-una-ricetta-medica-falsa.html' title='Come fare una ricetta medica falsa'/><author><name>nicola peluchetti</name><uri>http://www.blogger.com/profile/01450021150020641208</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3103554217217191353.post-8408897669961581934</id><published>2012-08-28T14:19:00.000+02:00</published><updated>2012-09-03T16:39:07.202+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Borsa"/><category scheme="http://www.blogger.com/atom/ns#" term="investimenti"/><category scheme="http://www.blogger.com/atom/ns#" term="tappetino"/><title type='text'>Tecnica del Tappetino, come investire in borsa guadagnando nelle fasi di lateralità del mercato</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Piccola premessa, questo post non è opera mia è ricavato dalla sapienza dei partecipanti al thread di Intesa San Paolo sul &lt;a href=&quot;http://www.finanzaonline.com/forum/mercato-italiano/&quot; target=&quot;_blank&quot;&gt;Forum Di Finanzaonline&lt;/a&gt;.&lt;br /&gt;
Il contenuto di questo post è stato ricavato da un post fatto sul thread. Ci sono anche altre versioni del tappetino, se vi interessa approfondiremo.&lt;br /&gt;
Se volete altro aiuto seguite il thread in questione. Di solito nel titolo si parla di &quot;Zoccola&quot; e di &quot;Recchie&quot;, dovrebbe essere facile da trovare ;)&lt;br /&gt;
L’idea del tappetino è estremamente semplice. Identifichi un range in cui il titolo si muoverà in laterale, abbastanza ampio da poter ignorare oscillazioni anche molto violente. Attualmente il mio range su ISP è 0.9-1.9, conto che ci stia per tutto il 2012 almeno.&lt;br /&gt;
Dividi il range di un centesimo in pacchi, io ho fatto 70 pacchi, questo da’ uno step di 1.5 centesimi. Poi arriva il momento di determinare le quantità di ogni pacco. Io ho messo 350 pezzi per ogni pacco, perché altrimenti non avrei avuto capitale sufficiente per coprire il tappetino. Ovviamente, avendo soldi si possono aumentare quanto vuoi, ma io questi ho, e questi ho usato. Ultimo parametro: il take profit, che io ho messo a 4.6 centesimi.&lt;br /&gt;
Cosa significa tutto questo? Che io compro ogni 1.5 centesimi 350 ISP e vendo ogni pacco 4.6 centesimi sopra al prezzo di acquisto. Se scende, continuo a comprare ogni pacco, se sale vendo quelli che ho in pancia. Finchè rimane in laterale nel mio range, a qualunque prezzo sia, posso operare. Se dovesse sforare in su, niente di grave, ho solo capitale e devo riprendere un tappetino nuovo. Se dovesse sforare in giu… beh, poco da fare, fermo l’operatività finchè non torna in range, perché ho finito i soldi.&lt;br /&gt;
&lt;br /&gt;
Per complicare un po’ le cose, il tappetino è incrementale, nel senso che ogni giro su un pacco determina un gain, che invece che essere prelevabile aumenta l’esposizione su quel pacco. Quindi, ne compro 350, ne vedo 350 ed ho 15 euro di gain. Al prossimo giro ne comprerò 362, ne venderò 362 con un gain ulteriore che aumenta ancora la quantità e così via. Non è anomalo vendere lo stesso pacco 7/8 volte in un mese.&lt;br /&gt;
Per complicarle ancora, il tappetino è out range. Quindi spesso compro 360 titoli e ne vendo solo 350, riducendo il gain ma accumulando 10 titoli che tengo lì. Al momento li sto accumulando per il range superiore (non avevo abbastanza titoli all’inizio per coprire tutto il range), quando avrò coperto il tappetino probabilmente accumulerò comunque titoli per il futuro.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://newcodeandroll.blogspot.com/feeds/8408897669961581934/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://newcodeandroll.blogspot.com/2012/08/tecnica-del-tappetino-come-investire.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3103554217217191353/posts/default/8408897669961581934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3103554217217191353/posts/default/8408897669961581934'/><link rel='alternate' type='text/html' href='http://newcodeandroll.blogspot.com/2012/08/tecnica-del-tappetino-come-investire.html' title='Tecnica del Tappetino, come investire in borsa guadagnando nelle fasi di lateralità del mercato'/><author><name>nicola peluchetti</name><uri>http://www.blogger.com/profile/01450021150020641208</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3103554217217191353.post-2721610919012010824</id><published>2012-06-08T15:45:00.001+02:00</published><updated>2012-06-08T15:45:12.828+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jasmine"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="unit-tests"/><category scheme="http://www.blogger.com/atom/ns#" term="web development"/><title type='text'>How to spy on jQuery, jQuery selectors and jQuery functions with Jasmine</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I&#39;m currently using &lt;a href=&quot;http://pivotal.github.com/jasmine/&quot; target=&quot;_blank&quot;&gt;Jasmine&lt;/a&gt;&amp;nbsp;to introduce tests for javascript in our fantastic &lt;a href=&quot;http://wordpress.org/extend/plugins/all-in-one-event-calendar/&quot; target=&quot;_blank&quot;&gt;Wordpress plugin&lt;/a&gt;.&lt;br /&gt;
One big problem i had was testing jQuery calls like this one&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre style=&quot;background: #ffffff; color: black;&quot;&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;var&lt;/span&gt; activate_saved_tab_on_page_load &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt; active_tab &lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt; active_tab &lt;span style=&quot;color: #808030;&quot;&gt;===&lt;/span&gt; &lt;span style=&quot;color: #0f4d75;&quot;&gt;null&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: dimgrey;&quot;&gt;// Activate the first tab&lt;/span&gt;
        $&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: #0000e6;&quot;&gt;&#39;ul.nav-tabs a:first&#39;&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;tab&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: #0000e6;&quot;&gt;&#39;show&#39;&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: dimgrey;&quot;&gt;// Activate the correct tab&lt;/span&gt;
        $&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: #0000e6;&quot;&gt;&#39;ul.nav-tabs a[href=&#39;&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt; active_tab &lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: #0000e6;&quot;&gt;&#39;]&#39;&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;tab&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: #0000e6;&quot;&gt;&#39;show&#39;&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background: #ffffff; color: black;&quot;&gt;&lt;span style=&quot;color: purple;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
How to test that? Then i found this really cool solution:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background: #ffffff; color: black;&quot;&gt;it&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;Should show the first page if no cookie is present and null is passed to the function&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: dimgrey;&quot;&gt;// Spy on the tab() method&lt;/span&gt;
    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;var&lt;/span&gt; tab &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; spyOn&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt; $&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;fn&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000e6;&quot;&gt;&#39;tab&#39;&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: dimgrey;&quot;&gt;// Execute the function&lt;/span&gt;
    utility_functions&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;activate_saved_tab_on_page_load&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: #0f4d75;&quot;&gt;null&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: dimgrey;&quot;&gt;// Check that the tab() method was called with the right parameter&lt;/span&gt;
    expect&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt; tab &lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;toHaveBeenCalledWith&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: #0000e6;&quot;&gt;&#39;show&#39;&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: dimgrey;&quot;&gt;// Check the jQuery selector was what we expected&lt;/span&gt;
    expect&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt; tab&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;mostRecentCall&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;object&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;selector &lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;toEqual&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: #0000e6;&quot;&gt;&#39;ul.nav-tabs a:first&#39;&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
&lt;/pre&gt;
&lt;pre style=&quot;background: #ffffff; color: black;&quot;&gt;&lt;span style=&quot;color: purple;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
The trick was to use &lt;b&gt;&amp;nbsp;&lt;span style=&quot;background-color: white;&quot;&gt;tab&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;mostRecentCall&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;object&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;selector&amp;nbsp;&lt;/b&gt;&amp;nbsp;which refers to the jQuery selector and then use &lt;b&gt;toEqual()&lt;/b&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Hope this helps someone, feel free to share your jasmine tricks in the comments.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newcodeandroll.blogspot.com/feeds/2721610919012010824/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://newcodeandroll.blogspot.com/2012/06/how-to-spy-on-jquery-jquery-selectors.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3103554217217191353/posts/default/2721610919012010824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3103554217217191353/posts/default/2721610919012010824'/><link rel='alternate' type='text/html' href='http://newcodeandroll.blogspot.com/2012/06/how-to-spy-on-jquery-jquery-selectors.html' title='How to spy on jQuery, jQuery selectors and jQuery functions with Jasmine'/><author><name>nicola peluchetti</name><uri>http://www.blogger.com/profile/01450021150020641208</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3103554217217191353.post-7053498421331362252</id><published>2012-05-27T21:37:00.001+02:00</published><updated>2012-05-29T17:08:04.598+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php facebook facebook-php-sdk facebook-multiqueries facebook-api"/><title type='text'>How to use the Facebook PHP - SDK (With code examples)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
My first big task while working for my new &lt;a href=&quot;http://then.ly/&quot; target=&quot;_blank&quot;&gt;company&lt;/a&gt;&amp;nbsp;was to integrate Facebook events into our &lt;a href=&quot;http://wordpress.org/extend/plugins/all-in-one-event-calendar/&quot; target=&quot;_blank&quot;&gt;wordpress plugin&lt;/a&gt;.&lt;br /&gt;
In this post i will shoe you how i solved some common problems that you usually face when using the &lt;a href=&quot;https://github.com/facebook/php-sdk&quot; target=&quot;_blank&quot;&gt;Facebook Sdk for PHP&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
LOGIN&lt;br /&gt;
&lt;br /&gt;
Logging in the user is pretty straightforward and the &lt;a href=&quot;https://github.com/facebook/php-sdk/blob/master/examples/example.php&quot; target=&quot;_blank&quot;&gt;example&lt;/a&gt;&amp;nbsp;provided should be enough. What i did was creating a factory method to create an instance of the Facebook Class and add the token if present.&lt;br /&gt;
&lt;pre style=&quot;background: #ffffff; color: black;&quot;&gt;&lt;span style=&quot;background-color: #ffffe8; color: #5f5035;&quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; facebook_instance_factory&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;require_once&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; AI1EC_LIB_PATH &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;FB_SDK_PATH&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: dimgrey;&quot;&gt;// Get plugin settings.&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$plugin_settings&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;get_plugin_settings&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #400000;&quot;&gt;get_class&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: dimgrey;&quot;&gt;// Set ssl verification to false to avoid problems.&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Facebook&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$CURL_OPTS&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #7d0045;&quot;&gt;CURLOPT_SSL_VERIFYPEER&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: dimgrey;&quot;&gt;// Create our Application instance.&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$facebook&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; Facebook&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;array&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #0000e6;&quot;&gt;&#39;appId&#39;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$plugin_settings&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;FB_APP_ID&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #0000e6;&quot;&gt;&#39;secret&#39;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$plugin_settings&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;FB_APP_SECRET&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: dimgrey;&quot;&gt;// Retrieve the token from the configuration.&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$token&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;get_plugin_variable&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #0000e6;&quot;&gt;&#39;facebook-token&#39;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: dimgrey;&quot;&gt;// If the token was set, use it.&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$token&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$facebook&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;setAccessToken&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$token&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$facebook&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: #5f5035;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/pre&gt;
In this way it&#39;s easy to check if we have a valid token and the user is logged in&lt;br /&gt;
&lt;pre style=&quot;background: #ffffff; color: black;&quot;&gt;&lt;span style=&quot;background-color: #ffffe8; color: #5f5035;&quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$facebook&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;_facebook&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$user&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$facebook&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;getUser&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: dimgrey;&quot;&gt;// We may or may not have this data based on whether the user is logged in.&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: dimgrey;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: dimgrey;&quot;&gt;// If we have a $user id here, it means we know the user is logged into&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: dimgrey;&quot;&gt;// Facebook, but we don&#39;t know if the access token is valid. An access&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: dimgrey;&quot;&gt;// token is invalid if the user logged out of Facebook.&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: dimgrey;&quot;&gt;// Unfortunately this means an API call each time &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #5555dd;&quot;&gt;https://developers.facebook.com/blog/post/2011/05/13/how-to--handle-expired-access-tokens/&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$user&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;try&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$user_data&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$facebook&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;api&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #0000e6;&quot;&gt;&#39;/me&#39;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: dimgrey;&quot;&gt;// If no exception is thrown we have a new valid token, save it&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;_token&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$facebook&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;getAccessToken&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: #5f5035;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black;&quot;&gt;&lt;/span&gt;
&lt;/pre&gt;
As you read in the comment this means that you must make an API call each time to check if the user is logged in. This is insane for me so i saved all the data i needed in an object when the first call was made and then saved the object in session. Worked perfectly for me.&lt;br /&gt;
&lt;br /&gt;
LOGOUT&lt;br /&gt;
&lt;br /&gt;
Lots of people seem to have &lt;a href=&quot;http://stackoverflow.com/questions/10765575/logout-not-redirect-when-facebook-logout-and-data-remains-in-php/10765604#10765604&quot;&gt;problems logging out people&lt;/a&gt; from facebook and so did i. I solved this by not using the example provided in the SDK, but simply treating the logout button as a standard &quot;submit&quot; and then redirecting the user to this function&lt;br /&gt;
&lt;pre style=&quot;background: #ffffff; color: black;&quot;&gt;&lt;span style=&quot;background-color: #ffffe8; color: #5f5035;&quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; do_facebook_logout&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: dimgrey;&quot;&gt;// Get an instance of the Facebook class&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$facebook&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;facebook_instance_factory&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: dimgrey;&quot;&gt;// Destroy the session so that no Facebook data is held&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$facebook&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;destroySession&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: dimgrey;&quot;&gt;// Invalidate the Token&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;save_plugin_variable&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;FB_TOKEN&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #0000e6;&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: dimgrey;&quot;&gt;// Delete the user saved in session&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;unset&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$_SESSION&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;FB_USER_SESSION&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: dimgrey;&quot;&gt;// Get the logout URL from the Facebook Class&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$logout&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$facebook&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;getLogoutUrl&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: dimgrey;&quot;&gt;// Redirect the user to the logout url, facebook will redirect him to our page&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;wp_redirect&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$logout&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;/pre&gt;
As you can see i used a wordpress function to do the redirect, but you could simply use header();&lt;br /&gt;
&lt;br /&gt;
FQL MULTIQUERIES AND LIMITS IN FACEBOOK CALLS&lt;br /&gt;
&lt;br /&gt;
It took me a little while to understand how to do multiqueries, but in the end they where very simple. This is how i built them.&lt;br /&gt;
&lt;pre style=&quot;background: #ffffff; color: black;&quot;&gt;&lt;span style=&quot;background-color: #ffffe8; color: #5f5035;&quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; generate_fql_multiquery_to_get_events_details&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;array&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$users&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$fql&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;array&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: dimgrey;&quot;&gt;// When we make a query we must convert &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$time&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; Ai1ec_Facebook_Event&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;get_facebook_actual_time&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;foreach&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$users&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;as&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$fql&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #0000e6;&quot;&gt;&quot;SELECT&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: #0000e6;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;eid,&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: #0000e6;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;name,&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: #0000e6;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;description,&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: #0000e6;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;start_time,&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: #0000e6;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;end_time,&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: #0000e6;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;venue,&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: #0000e6;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;location,&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: #0000e6;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;update_time&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: #0000e6;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FROM&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: #0000e6;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;event&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: #0000e6;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;WHERE&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: #0000e6;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;eid IN (SELECT eid FROM event_member WHERE uid = &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #0000e6;&quot;&gt;) AND start_time &amp;gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$time&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #0000e6;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$fql&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: #5f5035;&quot;&gt;?&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
As you can see it&#39;s a simple associative array where the keys are the identifiers of the query and the values are the query themselves. Then you can make the call like this&lt;br /&gt;
&lt;pre style=&quot;background: #ffffff; color: black;&quot;&gt;&lt;span style=&quot;background-color: #ffffe8; color: #5f5035;&quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;try&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$events&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$facebook&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;api&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;array&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #0000e6;&quot;&gt;&#39;method&#39;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #0000e6;&quot;&gt;&#39;fql.multiquery&#39;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #0000e6;&quot;&gt;&#39;queries&#39;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$fql&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;catch&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; FacebookApiException &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$e&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;throw&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$e&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: #5f5035;&quot;&gt;?&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
To avoid overloading Facebook servers i found out that 200 queries per batch is considered safe if you don&#39;t nest queries. If you nest them it&#39;s hell. To limit to 200 i used &lt;a href=&quot;http://php.net/manual/en/function.array-chunk.php&quot; target=&quot;_blank&quot;&gt;array_chunk&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
CHECKING IF A FACEBOOK API EXCEPTION RELATES TO AUTHENTICATION&lt;br /&gt;
&lt;br /&gt;
One thing i wanted to do was provide feedback if some kind of authentication error happened. I needed a way to recognize those from the common API exception you get from a call that is too slow. To use this i used the error code 190. Here is my catch block&lt;br /&gt;
&lt;pre style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial;&quot;&gt;&lt;span style=&quot;background-color: #ffffe8; color: #5f5035;&quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;catch&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; FacebookApiException &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$e&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$e&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;getCode&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon;&quot;&gt;&lt;b&gt;190&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$message&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; __&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #0000e6;&quot;&gt;&quot;Something went wrong with Facebook authentication, try to log out and then login again&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; AI1EC_PLUGIN_NAME &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;_error_messages&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #400000;&quot;&gt;array_merge&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;_error_messages&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;array&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$message&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$facebook&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;destroySession&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$message&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; __&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #0000e6;&quot;&gt;&quot;Something went wrong when retrieving data from Facebook. Try subscribing to fewer users&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; AI1EC_PLUGIN_NAME &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;_error_messages&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #400000;&quot;&gt;array_merge&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;_error_messages&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: maroon; font-weight: bold;&quot;&gt;array&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #797997;&quot;&gt;$message&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: purple;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; color: black;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; color: #5f5035;&quot;&gt;?&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
as you can see i used the error code to determine what kind of exception has happened.&lt;br /&gt;
Of course if you have some trick to share, do it in the comments and of course correct me if you think that anything is wrong.&lt;br /&gt;
Hope this helps someone.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newcodeandroll.blogspot.com/feeds/7053498421331362252/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://newcodeandroll.blogspot.com/2012/05/how-to-use-facebook-php-sdk-with.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3103554217217191353/posts/default/7053498421331362252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3103554217217191353/posts/default/7053498421331362252'/><link rel='alternate' type='text/html' href='http://newcodeandroll.blogspot.com/2012/05/how-to-use-facebook-php-sdk-with.html' title='How to use the Facebook PHP - SDK (With code examples)'/><author><name>nicola peluchetti</name><uri>http://www.blogger.com/profile/01450021150020641208</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3103554217217191353.post-2895692747232108512</id><published>2012-04-02T18:04:00.000+02:00</published><updated>2012-04-02T18:11:56.735+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bloggin"/><category scheme="http://www.blogger.com/atom/ns#" term="code syntax highlighting"/><title type='text'>How to add syntax highlighting to your code in blogger when using dynamic views</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
When i started using &lt;a href=&quot;http://www.blogger.com/&quot; target=&quot;_blank&quot;&gt;blogger&lt;/a&gt; i had a lot of trouble with pasting code snippets in my posts because i was using dynamic views and i couldn&#39;t use any of&amp;nbsp;&lt;a href=&quot;http://alexgorbatchev.com/SyntaxHighlighter/integration.html&quot; target=&quot;_blank&quot;&gt;thes&lt;/a&gt;e&amp;nbsp;tricks because i couldn&#39;t edit the html of my theme . I usually ended up copy / pasting code from jsfiddle.&lt;br /&gt;
Then i found a service that does &lt;a href=&quot;http://tohtml.com/&quot; target=&quot;_blank&quot;&gt;online syntax highlighting &lt;/a&gt;and it worked perfectly! Now i just copy the html and i&#39;m done!&lt;br /&gt;
Hope this helps someone.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newcodeandroll.blogspot.com/feeds/2895692747232108512/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://newcodeandroll.blogspot.com/2012/04/how-to-add-syntax-highlighting-to-your.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3103554217217191353/posts/default/2895692747232108512'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3103554217217191353/posts/default/2895692747232108512'/><link rel='alternate' type='text/html' href='http://newcodeandroll.blogspot.com/2012/04/how-to-add-syntax-highlighting-to-your.html' title='How to add syntax highlighting to your code in blogger when using dynamic views'/><author><name>nicola peluchetti</name><uri>http://www.blogger.com/profile/01450021150020641208</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3103554217217191353.post-6191687310733599381</id><published>2012-04-02T17:43:00.000+02:00</published><updated>2012-04-02T17:44:55.256+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="facebook like"/><category scheme="http://www.blogger.com/atom/ns#" term="google plus"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="twitter"/><category scheme="http://www.blogger.com/atom/ns#" term="web development"/><title type='text'>A set of classes to render social buttons (Facebook Like, Google Plus, Twitter) in PHP</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
When working on my &lt;a href=&quot;http://www.biagettistudio.com/&quot; target=&quot;_blank&quot;&gt;latest project&lt;/a&gt;&amp;nbsp;i had the need to include social buttons for the main social networking platform, Facebook, Google Plus and Twitter.&lt;br /&gt;
I decided that wanted something i could re-use in other projects and so i created a set of classes that work toghether.&lt;br /&gt;
You can find everything on my &lt;a href=&quot;https://github.com/nicoladj77/SocialPlugins&quot; target=&quot;_blank&quot;&gt;github profile&lt;/a&gt;, feel free to fork it, use it and comment it if you think thatthings sholud have been handled in another way.&lt;br /&gt;
I have a basic abstract class called SocialButtonAbstract that defines a constructor and &amp;nbsp;a function to merge settings&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #5f5035;&quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: maroon; font-weight: bold;&quot;&gt;abstract&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: maroon; font-weight: bold;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; SocialButtonAbstract &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: maroon; font-weight: bold;&quot;&gt;protected&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #797997;&quot;&gt;$settings&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: maroon; font-weight: bold;&quot;&gt;final&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: maroon; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #400000;&quot;&gt;__construct&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: maroon; font-weight: bold;&quot;&gt;array&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #797997;&quot;&gt;$settings&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: maroon; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #797997;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;_mergeSettings&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #797997;&quot;&gt;$settings&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: maroon; font-weight: bold;&quot;&gt;protected&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: maroon; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; _mergeSettings&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: maroon; font-weight: bold;&quot;&gt;array&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #797997;&quot;&gt;$settings&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: maroon; font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #797997;&quot;&gt;$settings&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: maroon; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #797997;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #797997;&quot;&gt;settings&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #400000;&quot;&gt;array_merge&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #797997;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #797997;&quot;&gt;settings&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #797997;&quot;&gt;$settings&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: maroon; font-weight: bold;&quot;&gt;abstract&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: maroon; font-weight: bold;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: maroon; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; renderButton&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: maroon; font-weight: bold;&quot;&gt;array&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #797997;&quot;&gt;$settings&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; NULL&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: maroon; font-weight: bold;&quot;&gt;abstract&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: maroon; font-weight: bold;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: maroon; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; renderScript&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #5f5035;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
All the buttons extend this base class &amp;nbsp;and implement the method &lt;i&gt;renderButton()&lt;/i&gt; (which produces the html of the button with all the settings in &lt;a href=&quot;http://html5doctor.com/html5-custom-data-attributes/&quot; target=&quot;_blank&quot;&gt;html5 data format&lt;/a&gt;) and renderScript() (which produces the &amp;lt;script&amp;gt; tag needed to load the javascript thatrenders the button).&lt;br /&gt;
&lt;br /&gt;
I also created a simple helper class that renders a group of buttons and small Factory class that produces instances of the Plugins.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #5f5035;&quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: maroon; font-weight: bold;&quot;&gt;require_once&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #0000e6;&quot;&gt;&quot;SocialPluginsHelper.php&quot;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: dimgrey;&quot;&gt;//Create the instance of the helper class and set some options&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #797997;&quot;&gt;$socialPlugins&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: maroon; font-weight: bold;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; SocialPluginsHelper&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: maroon; font-weight: bold;&quot;&gt;array&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SocialPluginsHelper&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;HTML_AFTER_BUTTONS &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #0000e6;&quot;&gt;&#39;&amp;lt;div class=&quot;clear&quot;&amp;gt;&amp;lt;/div&amp;gt;&#39;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SocialPluginsHelper&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;HTML_BEFORE_BUTTONS &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #0000e6;&quot;&gt;&#39;&amp;lt;div class=&quot;clear&quot;&amp;gt;&amp;lt;/div&amp;gt;&#39;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SocialPluginsHelper&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;STYLE_OF_WRAPPER &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #0000e6;&quot;&gt;&#39;margin-top:5px;&#39;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SocialPluginsHelper&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;CUSTOM_PLUGIN_STYLE &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: maroon; font-weight: bold;&quot;&gt;array&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #0000e6;&quot;&gt;&quot;TwitterButton&quot;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #0000e6;&quot;&gt;&quot;width:69px;&quot;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #0000e6;&quot;&gt;&quot;FacebookLike&quot;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #0000e6;&quot;&gt;&quot;width:146px;&quot;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; text-align: -webkit-auto;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: dimgrey;&quot;&gt;//Add the buttons to the class&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #797997;&quot;&gt;$socialPlugins&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #400000;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;PluginFactory&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;create&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #0000e6;&quot;&gt;&quot;FacebookLike&quot;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: maroon; font-weight: bold;&quot;&gt;array&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;FacebookLike&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;FB_WIDTH &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #0000e6;&quot;&gt;&quot;146&quot;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #797997;&quot;&gt;$socialPlugins&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #400000;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;PluginFactory&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;create&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #0000e6;&quot;&gt;&quot;TwitterButton&quot;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #797997;&quot;&gt;$socialPlugins&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #400000;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;PluginFactory&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;create&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #0000e6;&quot;&gt;&quot;Gplus&quot;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: dimgrey;&quot;&gt;// render the javascripts for the buttons &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #797997;&quot;&gt;$socialPlugins&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;renderAllScripts&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: dimgrey;&quot;&gt;/* Render the buttons (you can pass some options to the class to use&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: dimgrey;&quot;&gt; * in the buttons, the main use case&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: dimgrey;&quot;&gt;&amp;nbsp;* for this is when you have multiple buttons on&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: dimgrey;&quot;&gt; * the same page and you have to pass a different href&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; t&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: dimgrey;&quot;&gt;o like */&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #797997;&quot;&gt;$socialPlugins&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;renderAllButtons&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: maroon; font-weight: bold;&quot;&gt;array&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #0000e6;&quot;&gt;&quot;FacebookLike&quot;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: maroon; font-weight: bold;&quot;&gt;array&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;FacebookLike&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: purple;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;FB_HREF &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #797997;&quot;&gt;$url&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; color: #808030;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;color: #808030;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
Of course you could avoid using the helper class and use the single classes directly. Hope this is of any use to you, feel free to leave feedback if you think something should be done in another way.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newcodeandroll.blogspot.com/feeds/6191687310733599381/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://newcodeandroll.blogspot.com/2012/04/set-of-classes-to-render-social-buttons.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3103554217217191353/posts/default/6191687310733599381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3103554217217191353/posts/default/6191687310733599381'/><link rel='alternate' type='text/html' href='http://newcodeandroll.blogspot.com/2012/04/set-of-classes-to-render-social-buttons.html' title='A set of classes to render social buttons (Facebook Like, Google Plus, Twitter) in PHP'/><author><name>nicola peluchetti</name><uri>http://www.blogger.com/profile/01450021150020641208</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3103554217217191353.post-4495775458809293171</id><published>2012-03-21T23:45:00.000+01:00</published><updated>2012-04-02T17:52:42.664+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="web development"/><title type='text'>How to use variables in CSS using PHP</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
My first assignement in my new job was mostly a front-end job, i had to work on two sites which share the codebase and most of the functionality but differ in some css colors. I didn&#39;t want &amp;nbsp;to use &lt;a href=&quot;http://lesscss.org/&quot; target=&quot;_blank&quot;&gt;less&amp;nbsp;&lt;/a&gt;and i decided to write a simple class in PHP to handle the parsing of the CSS files.&lt;br /&gt;
You can find this class on &lt;a href=&quot;https://github.com/nicoladj77/Css-Helper&quot; target=&quot;_blank&quot;&gt;github&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
This is a really basic helper class that takes an associative arrays as a constructor parameter and then parses the files contained in the &quot;/css&quot; directory replacing the keys with the values. &lt;br /&gt;
&lt;br /&gt;
Basic use. &lt;br /&gt;
&lt;br /&gt;
Let&#39;s say whe have a style.css file in the &quot;css/&quot; directory which holds the following code&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;:&lt;/span&gt;[textColor]&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;background-color&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;:&lt;/span&gt;[backgroundColor]&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #5f5035;&quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: dimgrey;&quot;&gt;//This preloads and convert all files that are found in the &quot;css/&quot; directory&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: dimgrey;&quot;&gt;//you can change this parameter by changing the $cssDir private variable&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #797997;&quot;&gt;$css&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: maroon; font-weight: bold;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; Css&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: maroon; font-weight: bold;&quot;&gt;array&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #0000e6;&quot;&gt;&quot;[textColor]&quot;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #0000e6;&quot;&gt;&quot;black&quot;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #0000e6;&quot;&gt;&quot;[backgroundColor]&quot;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #0000e6;&quot;&gt;&quot;white&quot;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: dimgrey;&quot;&gt;//This recreates the previously loaded and converted file files in the $outCssDir directory&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #797997;&quot;&gt;$css&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #808030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;renderToFile&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #5f5035;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;color: dimgrey;&quot;&gt;/* a file called style.css in the directory ../css &lt;/span&gt;
&lt;span style=&quot;color: dimgrey;&quot;&gt;&amp;nbsp;* that holds the following code has been created: */&lt;/span&gt;
&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #797997;&quot;&gt;black&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;background-color&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #797997;&quot;&gt;white&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; text-align: -webkit-auto;&quot;&gt;//this just echoes a &lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt; block
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #5f5035;&quot;&gt;&amp;lt;?&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; php &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #797997;&quot;&gt;$css&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #808030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt;render&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #ffffe8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #5f5035;&quot;&gt;?&amp;gt;&lt;/span&gt;
//the following element is rendered&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #797997;&quot;&gt;black&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;background-color&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #797997;&quot;&gt;white&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newcodeandroll.blogspot.com/feeds/4495775458809293171/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://newcodeandroll.blogspot.com/2012/03/how-to-use-variables-in-css-using-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3103554217217191353/posts/default/4495775458809293171'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3103554217217191353/posts/default/4495775458809293171'/><link rel='alternate' type='text/html' href='http://newcodeandroll.blogspot.com/2012/03/how-to-use-variables-in-css-using-php.html' title='How to use variables in CSS using PHP'/><author><name>nicola peluchetti</name><uri>http://www.blogger.com/profile/01450021150020641208</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3103554217217191353.post-990574592182045526</id><published>2012-02-19T18:11:00.000+01:00</published><updated>2012-02-20T16:52:31.661+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="jsfiddle"/><category scheme="http://www.blogger.com/atom/ns#" term="Objects manipulation"/><category scheme="http://www.blogger.com/atom/ns#" term="web development"/><title type='text'>How to merge two objects in javascript / jQuery adding the values of common properties (recursively)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This blog post was inspired by &lt;a href=&quot;http://stackoverflow.com/questions/9174965/merge-two-javascript-objects-adding-values-of-common-properties/&quot; target=&quot;_blank&quot;&gt;this &lt;/a&gt;question on &lt;a href=&quot;http://stackoverflow.com/&quot;&gt;stackoverflow.com&lt;/a&gt;.&lt;br /&gt;
&lt;div&gt;
I&#39;m going to show you how to merge two objects, adding (if they are numbers) or concatenating (if they are strings) the properties with the same name.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
This will work recursively, so if both objects have a property called &lt;i&gt;foo &lt;/i&gt;and &lt;i&gt;foo&lt;/i&gt; is an object (in both the objects i want to merge) also the properties of &lt;i&gt;foo &lt;/i&gt;will be merged.&lt;/div&gt;
&lt;div&gt;
Here is the code&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//Let&#39;s create the namespace&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;var&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;NICOLA&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;NICOLA&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;is_object&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variabledef&quot; style=&quot;color: blue; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;mixed_var&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;if&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;Object&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;prototype&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;toString&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;call&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-localvariable&quot; style=&quot;color: #004499; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;mixed_var&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;===&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&#39;[object Array]&#39;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;return&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-atom&quot; style=&quot;color: #228811; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;return&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-localvariable&quot; style=&quot;color: #004499; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;mixed_var&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;!==&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-atom&quot; style=&quot;color: #228811; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;null&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;amp;&amp;amp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;typeof&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-localvariable&quot; style=&quot;color: #004499; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;mixed_var&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;==&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&#39;object&#39;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//This is the main merge function&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;NICOLA&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;merge&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//create a cache object that will be returned&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;var&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;cache&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//call the NICOLA.unpackObject function which does the dirty work on both objects&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;cache&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;NICOLA&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;unpackObject&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;cache&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;cache&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;NICOLA&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;unpackObject&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;cache&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//return the merged objects&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;return&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;cache&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;NICOLA&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;unpackObject&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;cache&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;for&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;prop&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;in&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//filter out properties inherited from the prototype chain&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;if&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;hasOwnProperty&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;prop&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//if the cache objects doesn&#39;t contain the property, set it&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;if&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;cache&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;prop&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;]&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;===&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-atom&quot; style=&quot;color: #228811; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;undefined&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;cache&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;prop&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;]&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;prop&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;else&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//if the property is already set, check if the type of the colliding properties&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//is the same&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;if&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;typeof&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;cache&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;prop&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;]&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;===&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;typeof&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;prop&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//if it is the same type, check if both preperties are objects&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;if&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;NICOLA&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;is_object&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;prop&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;amp;amp;&amp;amp;amp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;NICOLA&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;is_object&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;cache&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;prop&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//if is an object, call recursively the NICOLA.merge to merge the object&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;cache&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;prop&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;]&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;NICOLA&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;merge&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;cache&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;prop&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;prop&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//check if the property is a number or a string&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;else&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;if&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;typeof&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;cache&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;prop&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;]&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;===&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&#39;number&#39;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;||&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;typeof&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;cache&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;prop&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;]&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;===&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&#39;string&#39;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//if it&#39;s a number, just sum the properties, if it&#39;s a string&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//concatenate it&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;cache&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;prop&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;]&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;+=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;prop&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;else&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//in all other cases, just use the newest value&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;cache&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;prop&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;]&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;prop&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;return&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;cache&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//this is a simple function to show all the properties of an object, recursively&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;NICOLA&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;printobject&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;for&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;prop&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;in&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;if&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;hasOwnProperty&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;prop&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;if&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;NICOLA&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;is_object&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;prop&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&#39;body&#39;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;append&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&#39;prop:[&#39;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;+&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;prop&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;+&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&#39;] is an object, we print the properties here&lt;br /&gt;&#39;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;NICOLA&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;printobject&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;prop&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;else&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&#39;body&#39;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;append&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&#39;prop:[&#39;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;+&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;prop&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;+&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&#39;] - value:[&#39;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;+&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;prop&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;]&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;+&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&#39;]&lt;br /&gt;&#39;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//some setup, this object will be merged&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;var&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;a&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;en&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-atom&quot; style=&quot;color: #228811; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;fr&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-atom&quot; style=&quot;color: #228811; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;in&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-atom&quot; style=&quot;color: #228811; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;9&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;lang&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&quot;js&quot;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;object&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;nestedProp&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-atom&quot; style=&quot;color: #228811; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;6&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;var&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;b&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;en&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-atom&quot; style=&quot;color: #228811; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;8&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;fr&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-atom&quot; style=&quot;color: #228811; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;21&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;br&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-atom&quot; style=&quot;color: #228811; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;8&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;lang&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&quot;en&quot;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;object&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;nestedProp&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-atom&quot; style=&quot;color: #228811; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;unique&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&quot;myne&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//merge the objects&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;var&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;c&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;NICOLA&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;merge&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//print the results&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;NICOLA&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;printobject&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;​&lt;/span&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
This is the result on the screen:&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
prop:[en] - value:[13]&lt;br /&gt;
prop:[fr] - value:[24]&lt;br /&gt;
prop:[in] - value:[9]&lt;br /&gt;
prop:[lang] - value:[jsen]&lt;br /&gt;
prop:[object] is an object, we print the properties here&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
prop:[nestedProp] - value:[7]&lt;br /&gt;
prop:[unique] - value:[myne]&lt;br /&gt;
prop:[br] - value:[8]&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
As you can see preperties of the same type are added/concatenated recursively.&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
Here is a test &lt;a href=&quot;http://jsfiddle.net/nicolapeluchetti/xcEKG/&quot; target=&quot;_blank&quot;&gt;fiddle &lt;/a&gt;for you. Any comments are welcome.&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newcodeandroll.blogspot.com/feeds/990574592182045526/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://newcodeandroll.blogspot.com/2012/02/how-to-merge-two-javascript-objects.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3103554217217191353/posts/default/990574592182045526'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3103554217217191353/posts/default/990574592182045526'/><link rel='alternate' type='text/html' href='http://newcodeandroll.blogspot.com/2012/02/how-to-merge-two-javascript-objects.html' title='How to merge two objects in javascript / jQuery adding the values of common properties (recursively)'/><author><name>nicola peluchetti</name><uri>http://www.blogger.com/profile/01450021150020641208</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3103554217217191353.post-216424819437889400</id><published>2012-02-10T21:41:00.001+01:00</published><updated>2012-02-10T21:42:01.914+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Best of 2012"/><category scheme="http://www.blogger.com/atom/ns#" term="Indie"/><category scheme="http://www.blogger.com/atom/ns#" term="Music"/><category scheme="http://www.blogger.com/atom/ns#" term="Porcelain raft"/><title type='text'>Porcelain Raft - Strange Weekends review - Album of the year so far</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
First of all, as this is the first review of the blog, i will point out some things. I will review only music i like, i listen to every kind of music and if something strikes me i will post it here. No posts telling &quot;How bad the new *** album is&quot;.&lt;br /&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
Porcelain Raft most distincitve tra&lt;span style=&quot;font-family: inherit;&quot;&gt;it is&amp;nbsp;Mauro Remiddi&#39;s voice, which i could define only as spacy and etherial, and also definitely androginous, it&#39;s really something you should hear. I do fear that is something that you either will love or hate.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;The tunes on the album are all good, my favourites are &quot;Backwords&quot; and the really psychedelic &quot;Unless you speak from your heart&quot; and the album clocks a reasonable 39 minutes which, for me, is the perfect length for an album. All my favourite albums are under the 50 miutes tag, i&#39;ve never seen the need to go over that. Yes, &lt;a href=&quot;http://www.nme.com/artists/smashing-pumpkins&quot; target=&quot;_blank&quot;&gt;Billy Corgan&lt;/a&gt; and &lt;a href=&quot;http://www.nme.com/reviews/m83/12375&quot; target=&quot;_blank&quot;&gt;Anthony Gonzales&lt;/a&gt;, i&#39;m talking about you.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;For me it&#39;s the best album of 2012 so far.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Here are some resources for you.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;/div&gt;
&lt;h1 id=&quot;watch-headline-title&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #333333; height: 1.1363em; line-height: 1.1363em; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-height: 1.1363em; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;&quot;&gt;

&lt;span class=&quot;long-title&quot; dir=&quot;ltr&quot; id=&quot;eow-title&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; letter-spacing: -0.5px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; title=&quot;Porcelain Raft - &amp;quot;Put Me to Sleep&amp;quot; (Official Video)&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: small;&quot;&gt;Porcelain Raft - &quot;Put Me to Sleep&quot; (Official Video)&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;http://www.youtube.com/embed/awGNxUsPfWA&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;br /&gt;
Here are two really good tracks that you can download for free&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.scjag.com/mp3/sc/unlessyouspeak.mp3&quot; target=&quot;_blank&quot;&gt;Unless you speak from your heart&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.scjag.com/mp3/sc/putmetosleep.mp3&quot; target=&quot;_blank&quot;&gt;Put me to sleep&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
TRACKLIST&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Drifting In And Out&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Shapeless &amp;amp; Gone&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Is It Too Deep For You?&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Put Me To Sleep&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Backwords&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Unless You Speak From Your Heart&amp;nbsp;&lt;/li&gt;
&lt;li&gt;The End Of Silence&amp;nbsp;&lt;/li&gt;
&lt;li&gt;If You Have A Wish&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Picture&amp;nbsp;&lt;/li&gt;
&lt;li&gt;The Way In&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newcodeandroll.blogspot.com/feeds/216424819437889400/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://newcodeandroll.blogspot.com/2012/02/porcelain-raft-strange-weekends-review.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3103554217217191353/posts/default/216424819437889400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3103554217217191353/posts/default/216424819437889400'/><link rel='alternate' type='text/html' href='http://newcodeandroll.blogspot.com/2012/02/porcelain-raft-strange-weekends-review.html' title='Porcelain Raft - Strange Weekends review - Album of the year so far'/><author><name>nicola peluchetti</name><uri>http://www.blogger.com/profile/01450021150020641208</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/awGNxUsPfWA/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3103554217217191353.post-8530873026873247152</id><published>2012-01-29T20:10:00.001+01:00</published><updated>2012-01-29T20:11:05.691+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="jsfiddle"/><category scheme="http://www.blogger.com/atom/ns#" term="web development"/><title type='text'>How to receive response from AJAX calls in jsfiddle using jQuery</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
We all know and love &lt;a href=&quot;http://jsfiddle.net/&quot; target=&quot;_blank&quot;&gt;jsfiddle&lt;/a&gt;, but sometimes it&#39;s difficult to set-up a fiddle, especially when &amp;nbsp;we have to test a script which makes an AJAX call to our server.&lt;br /&gt;
Jsfiddle documentation (which is not so easy to &lt;a href=&quot;http://doc.jsfiddle.net/&quot; target=&quot;_blank&quot;&gt;find&lt;/a&gt;) provides an &quot;&lt;a href=&quot;http://doc.jsfiddle.net/use/echo.html&quot; target=&quot;_blank&quot;&gt;echo feature&lt;/a&gt;&quot; that helps you by &quot;simulating&quot; an answer from the server. Basically you get back what you send to a certain url and you can choose tha dataType that matches your test case, be it HTML, JSON or JSONP&lt;br /&gt;
Unfortunately the examples are all in MooTools, here i will explain how to do that in jQuery.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;JSON&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
To make a JSON call you have to create a valid JSON to send to the server, and to do that i&#39;m gonna use the &lt;a href=&quot;http://code.google.com/p/jquery-json/&quot; target=&quot;_blank&quot;&gt;jQuery - JSON library&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;/**&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;* create a data object to send to the server, it must have two properties&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;* json: the encoded (i use jQuery - Json library to do that) JSON that you will receive back&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;* delay: how long the server waits before responding in seconds&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;*/&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;var&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variabledef&quot; style=&quot;color: blue; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;data&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;json&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;toJSON&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;&#39;Echo JSON&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;delay&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-atom&quot; style=&quot;color: #228811; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;ajax&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;//post the request to /echo/json/ and specify the correct datatype&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;url&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;&#39;/echo/json/&#39;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;dataType&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;&#39;json&#39;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-localvariable&quot; style=&quot;color: #004499; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;success&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variabledef&quot; style=&quot;color: blue; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;//you get back exactly what you sent in the json&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;alert&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-localvariable&quot; style=&quot;color: #004499; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;&#39;#result&#39;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;html&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-localvariable&quot; style=&quot;color: #004499; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;&#39;POST&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px;&quot;&gt;;&lt;/span&gt;
&lt;/div&gt;
&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;HTML&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;b style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//No need to encode this time, just set the html property of the object&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//to what you want back&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;var&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variabledef&quot; style=&quot;color: blue; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;data&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;html&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&quot;&lt;/span&gt;&lt;/div&gt;
Text echoed back to request&lt;br /&gt;
&quot;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;delay&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-atom&quot; style=&quot;color: #228811; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;ajax&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//post the request to /echo/html/ and specify the correct datatype&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;url&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&#39;/echo/html/&#39;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;dataType&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&#39;html&#39;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-localvariable&quot; style=&quot;color: #004499; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;success&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variabledef&quot; style=&quot;color: blue; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//As in the other example you get&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;alert&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-localvariable&quot; style=&quot;color: #004499; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&#39;#result&#39;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;html&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-localvariable&quot; style=&quot;color: #004499; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&#39;POST&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;JSONP&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//this time you can use a standard javascript object&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//you get back everything you sent minus the delay property&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;var&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variabledef&quot; style=&quot;color: blue; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;data&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&#39;ECHO JSONP&#39;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;par1&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&#39;another param&#39;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;delay&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;js-atom&quot; style=&quot;color: #228811; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;ajax&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//this time you have to make a GET request to http://jsfiddle.net/echo/jsonp/&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;url&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&#39;http://jsfiddle.net/echo/jsonp/&#39;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;dataType&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&#39;jsonp&#39;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-localvariable&quot; style=&quot;color: #004499; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;success&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variabledef&quot; style=&quot;color: blue; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//you get back the same object you sent minus the delay property&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;alert&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-localvariable&quot; style=&quot;color: #004499; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&#39;#result&#39;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;html&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-localvariable&quot; style=&quot;color: #004499; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;par1&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&#39;GET&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
I&#39;v also set-up a &lt;a href=&quot;http://jsfiddle.net/NUNWG/&quot; target=&quot;_blank&quot;&gt;fiddle &lt;/a&gt;for you to check out. Hope this helps someone, any feedback is welcome.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newcodeandroll.blogspot.com/feeds/8530873026873247152/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://newcodeandroll.blogspot.com/2012/01/how-to-receive-response-from-ajax-calls.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3103554217217191353/posts/default/8530873026873247152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3103554217217191353/posts/default/8530873026873247152'/><link rel='alternate' type='text/html' href='http://newcodeandroll.blogspot.com/2012/01/how-to-receive-response-from-ajax-calls.html' title='How to receive response from AJAX calls in jsfiddle using jQuery'/><author><name>nicola peluchetti</name><uri>http://www.blogger.com/profile/01450021150020641208</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3103554217217191353.post-7929785809137056451</id><published>2012-01-10T16:31:00.001+01:00</published><updated>2012-01-27T07:16:30.946+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Array manipulation"/><category scheme="http://www.blogger.com/atom/ns#" term="Distinct values"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="web development"/><title type='text'>How to find duplicates in an array in javascript / jQuery</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
People sometimes wonder how to find duplicate elements in an array in javascript/jQuery.&lt;br /&gt;
Here i will show how you could do that leveraging the power of objects in javascript.&lt;br /&gt;
This will work for arrays that contain Strings, Number and Objects.&lt;br /&gt;
This code uses the JSON library which is natively supported in the following browsers:&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Mozilla Firefox 3.5+&lt;/li&gt;
&lt;li&gt;Opera 10.5+&lt;/li&gt;
&lt;li&gt;Internet Explorer 8+&lt;/li&gt;
&lt;li&gt;WebKit Based Browsers&amp;nbsp;&lt;span style=&quot;background-color: white; font-family: sans-serif; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: sans-serif; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;(e.g. Google Chrome, Apple Safari)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-family: inherit; line-height: 19px;&quot;&gt;Or you could use Douglas Crockford &lt;a href=&quot;https://github.com/douglascrockford/JSON-js&quot; target=&quot;_blank&quot;&gt;JSON library&lt;/a&gt; for backword compatibility&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;var&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;array&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&#39;my&#39;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-atom&quot; style=&quot;color: #228811; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-atom&quot; style=&quot;color: #228811; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&#39;3&#39;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&#39;3&#39;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&#39;youurs&#39;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-atom&quot; style=&quot;color: #228811; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-atom&quot; style=&quot;color: #228811; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;6&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;myProp&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-atom&quot; style=&quot;color: #228811; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;1&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;myProp&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-atom&quot; style=&quot;color: #228811; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;1&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;var&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;length&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;array&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;length&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//The array ArrayWithUniqueValues will contain only one value for each entry of array&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;var&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;ArrayWithUniqueValues&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//Object objectCounter will store the distinct values of array as property and&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//the number of times they are present in array as values&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;var&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;objectCounter&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;for&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;i&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-atom&quot; style=&quot;color: #228811; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;i&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;lt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;length&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;++&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//First i stringify the current member of the Array, this will be the key&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; //that i will use to check if the value is already present&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;var&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;currentMemboerOfArrayKey&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;JSON&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;stringify&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;array&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//This is the value that i will store only once in ArrayWithUniqueValues&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;var&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;currentMemboerOfArrayValue&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;array&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//I check if the property currentMemboerOfArrayKey of the object is undefined,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; //which is the default value of unset properties&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;if&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;objectCounter&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;currentMemboerOfArrayKey&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;]&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;===&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-atom&quot; style=&quot;color: #228811; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;undefined&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//If the property is undefined, this is the first time i have this value&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //in the array, so i add it to ArrayWithUniqueValues&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;ArrayWithUniqueValues&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;push&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;currentMemboerOfArrayValue&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//I set the current key of the object to one: this is both for counting&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //reasons and for avoiding duplicates because &amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;the next time&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //objectCounter[currentMemboerOfArrayKey] === undefined will be false and&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // the value will not be added to ArrayWithUniqueValues&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;objectCounter&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;currentMemboerOfArrayKey&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;]&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-atom&quot; style=&quot;color: #228811; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;//The key was already present, augment the counter by one&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;objectCounter&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;currentMemboerOfArrayKey&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;++&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;/*&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;If i output the value of objectCounter to the console i will have:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;Value&amp;nbsp;&amp;nbsp;Number of times present&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;2&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;1&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;6&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;1&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&quot;3&quot;&amp;nbsp; &amp;nbsp;&amp;nbsp;2&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&quot;my&quot;&amp;nbsp; &amp;nbsp;1&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&quot;youurs&quot;&amp;nbsp; &amp;nbsp;&amp;nbsp;1&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&quot;myProp&quot;:1}&amp;nbsp; &amp;nbsp;&amp;nbsp;2&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;*/&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;console&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;log&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;objectCounter&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;/* If i output the value of ArrayWithUniqueValues to the console i will have&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;[&quot;my&quot;, 2, 3, &quot;3&quot;, &quot;youurs&quot;, 6, Object { myProp=1}]&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-comment&quot; style=&quot;color: #aa7700; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;*/&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;console&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;log&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;ArrayWithUniqueValues&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Here is a &lt;a href=&quot;http://jsfiddle.net/abQ3V/&quot; target=&quot;_blank&quot;&gt;link &lt;/a&gt;to a working jsFiddle example you can play with.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
I hope the comments in the code are clear enough, if not, feel free to ask questions in the comments.&lt;/div&gt;
&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newcodeandroll.blogspot.com/feeds/7929785809137056451/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://newcodeandroll.blogspot.com/2012/01/how-to-find-duplicates-in-array-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3103554217217191353/posts/default/7929785809137056451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3103554217217191353/posts/default/7929785809137056451'/><link rel='alternate' type='text/html' href='http://newcodeandroll.blogspot.com/2012/01/how-to-find-duplicates-in-array-in.html' title='How to find duplicates in an array in javascript / jQuery'/><author><name>nicola peluchetti</name><uri>http://www.blogger.com/profile/01450021150020641208</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Via Andrea del sarto 9, 20129 Milan, Italy</georss:featurename><georss:point>45.463681 9.1881714</georss:point><georss:box>45.3745885 9.0302429 45.5527735 9.3460999</georss:box></entry><entry><id>tag:blogger.com,1999:blog-3103554217217191353.post-3716227790456617940</id><published>2012-01-08T22:55:00.004+01:00</published><updated>2012-01-27T07:14:16.518+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="events"/><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="web development"/><title type='text'>How to detect if an event is triggered programmatically in jQuery</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;One question that &lt;a href=&quot;http://stackoverflow.com/questions/7635274/how-to-detect-if-a-click-is-a-mouse-click-or-triggered-by-some-code/7635412#7635412&quot; target=&quot;_blank&quot;&gt;sometimes &lt;/a&gt;pops-up on Stackoverflow is &quot;How do i detect whether an event is triggered by the user or programmatically from other pieces of code&quot;?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;The answer is pretty simple, as the event handler (which right now, jQuery 1.7.1, is&amp;nbsp;&lt;a href=&quot;http://api.jquery.com/on/&quot; target=&quot;_blank&quot;&gt;on()&lt;/a&gt;&amp;nbsp;or it&#39;s shortand version like &lt;a href=&quot;http://api.jquery.com/click/&quot; target=&quot;_blank&quot;&gt;click()&lt;/a&gt;, but this method works also in legacy versions of jQuery) is always passed an &lt;a href=&quot;http://api.jquery.com/category/events/event-object/&quot; target=&quot;_blank&quot;&gt;event object&lt;/a&gt; as the first parameter.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;There is one property of the event object, which is called &lt;b&gt;originalEvent,&amp;nbsp;&lt;/b&gt;that is of particular interest to us since this property is &lt;b&gt;undefined &lt;/b&gt;if the event is triggered programmatically, otherwise it stores the original Javascript event.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;This brings us to the code:&lt;/span&gt;&lt;br /&gt;
&lt;code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&#39;#someElem&#39;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;on&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&#39;click&#39;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;function&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variabledef&quot; style=&quot;color: blue; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;e&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot; /&gt;&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;if&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-localvariable&quot; style=&quot;color: #004499; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;e&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;js-property&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;originalEvent&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-operator&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;===&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-atom&quot; style=&quot;color: #228811; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;undefined&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot; /&gt;&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;alert&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&#39;triggered programmatically&#39;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot; /&gt;&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-keyword&quot; style=&quot;color: #770088; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;else&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot; /&gt;&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-variable&quot; style=&quot;font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;alert&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;(&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-string&quot; style=&quot;color: #aa2222; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&#39;clicked by the user&#39;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot; /&gt;&lt;span class=&quot;whitespace&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot; /&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;js-punctuation&quot; style=&quot;color: #666666; font-family: Inconsolata, Monaco, Consolas, &#39;Andale Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Here is a &lt;a href=&quot;http://jsfiddle.net/ZpSdJ/&quot; target=&quot;_blank&quot;&gt;link &lt;/a&gt;to test jsfiddle. Feel free to comment.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://newcodeandroll.blogspot.com/feeds/3716227790456617940/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://newcodeandroll.blogspot.com/2012/01/how-to-detect-if-event-is-triggered.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3103554217217191353/posts/default/3716227790456617940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3103554217217191353/posts/default/3716227790456617940'/><link rel='alternate' type='text/html' href='http://newcodeandroll.blogspot.com/2012/01/how-to-detect-if-event-is-triggered.html' title='How to detect if an event is triggered programmatically in jQuery'/><author><name>nicola peluchetti</name><uri>http://www.blogger.com/profile/01450021150020641208</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total><georss:featurename>Milan, Italy</georss:featurename><georss:point>45.463681 9.1881714</georss:point><georss:box>45.3745885 9.0302429 45.5527735 9.3460999</georss:box></entry></feed>