                 else
                     window.onAfterPrint()
 
+        # IE + FF
         window.onbeforeprint = window.printTest
         window.onafterprint = window.onAfterPrint
 

        listOfUnits = document.createElement('div')
        listOfUnits.id = 'list-of-units';
        document.getElementsByTagName('body')[0].appendChild(listOfUnits);
        vid = (() ->
            num = 0
            inc = () -> ++num

                delete marker._iconStore
            # Reset icon options
            if marker.options.icon.options.printStore
                printStore = marker.options.icon.options.printStore
                for att in printStore.storeAttributes
                    delete marker.options.icon.options[att]
                    if printStore[att]
                        marker.options.icon.options[att] = printStore[att]
                delete marker.options.icon.options.printStore

        images = document.getElementById('images')
