Skip to main content

Posts

Showing posts from January, 2014

ES6 101 - Map

ES6 101 - Map
ES6 Map is the topic of today’s post which also is the 11th in the ES6 101 Series. Map is going to be fairly easy, so before jumping into it, if you want to look at other features we have covered so far, here is a quick list for your reference.Fat Arrow FunctionsLexical Declarations - LetLexical Declarations - ConstSpread OPeratorTemplate LiteralRest OperatorDefault parametersDestructuringFor…ofSetNow let’s see what Map has to offer. As opposed to Set (which by the way, I highly recommend reading), Map saves values as key-value pair. Let’s see for ourselves how this works!Example of ES6 Mapvar dummyMap = newMap(); dummyMap.set("1"); // Method is set as against add in ES6 Setconsole.log(dummyMap); // [["1",null]] dummyMap.set("1", "one"); console.log(dummyMap); // [["1","one"]] dummyMap.set("2", "two").set("3","three"); console.log(dummyMap); // [["1","one&…

Exploring Jquery Mobile 1.4.0

The Jquery Mobile team released a new stable version 1.4.0 on December 23, 2013, an early Christmas gift for all the Jquery Mobile fans including myself. The main thing that people noticed in this version was the change in the default theme and design. Jquery Mobile has gone flat with version 1.4.0, some believe that this change has been inspired by the flat metro design style Apple adopted for iOS 7. However, there have not been just cosmetic changes, but many more changes and we will take a look at these today.

Default theme (Swatch A)
    Version 1.4.0 is focused on performance improvements and reviewing widgets. A new default theme has been introduced with SVG icons. A few new widgets have been introduced with this version which include a flipswitch widget, a generic filter widget named "filterable", popups with arrows, tooltips for sliders and 2 new Jquery UI widgets have been intergrated - the Tabs widget and the Date Picker widget. The filterable widget can be use…