packages feed

hjsmin 0.1.4.7 → 0.1.4.8

raw patch · 5 files changed

+20/−5 lines, 5 filesnew-uploaderPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

Text/Jasmine/Pretty.hs view
@@ -126,6 +126,7 @@ rn (JSCatch _c _lb i  c _rb s)  = (text "catch") <> (char '(') <> (renderJS i) <>                                   (text " if ") <> (rJS $ tail c) <> (char ')') <> (renderJS $ fixFnBlock s) +rn (JSContinue _c is@[NT (JSIdentifier _) _ _] _as)  = (text "continue") <+> (rJS is) rn (JSContinue _c is _as)  = (text "continue") <> (rJS is) -- <> (char ';') rn (JSDefault _d _c xs)    = (text "default") <> (char ':') <> (rJS $ fixSourceElements xs) 
hjsmin.cabal view
@@ -1,9 +1,9 @@ name:            hjsmin-version:         0.1.4.7+version:         0.1.4.8 license:         BSD3 license-file:    LICENSE author:          Alan Zimmerman <alan.zimm@gmail.com>-maintainer:      Alan Zimmerman <alan.zimm@gmail.com>+maintainer:      Erik de Castro Lopo <erikd@mega-nerd.com> synopsis:        Haskell implementation of a javascript minifier description:    Reduces size of javascript files by stripping out extraneous whitespace and@@ -12,8 +12,8 @@ stability:       unstable cabal-version:   >= 1.9.2 build-type:      Simple-homepage:        http://github.com/alanz/hjsmin-bug-reports:     http://github.com/alanz/hjsmin/issues+homepage:        http://github.com/erikd/hjsmin+bug-reports:     http://github.com/erikd/hjsmin/issues  Extra-source-files:    TODO.txt@@ -63,4 +63,4 @@  source-repository head   type:     git-  location: git://github.com/alanz/hjsmin.git+  location: https://github.com/erikd/hjsmin.git
runtests.hs view
@@ -93,6 +93,7 @@   , testCase "15_literals.js"   (testFile "./test/pminified/15_literals.js")   , testCase "16_literals.js"   (testFile "./test/pminified/16_literals.js")   , testCase "20_statements.js" (testFile "./test/pminified/20_statements.js")+  , testCase "20_continue_loop.js" (testFile "./test/pminified/20_continue_loop.js")   , testCase "25_trycatch.js"   (testFile "./test/pminified/25_trycatch.js")   , testCase "40_functions.js"  (testFile "./test/pminified/40_functions.js")   , testCase "67_bob.js"        (testFile "./test/pminified/67_bob.js")
+ test/parsingonly/20_continue_loop.js view
@@ -0,0 +1,12 @@+function filterListeners(inputs, listeners) {+    loop:+    for (var i = listeners.length; i--; ) {+        var listener = listeners[i];+        for (var j = inputs.length; j--; ) {+            if (listener.relevantInputs.indexOf(inputs[j].id) >= 0) {+                continue loop;+            }+        }+        listener.domNode.removeEventListener(listener.eventName, listener.func);+    }+}
+ test/pminified/20_continue_loop.js view
@@ -0,0 +1,1 @@+function filterListeners(inputs,listeners){loop:for(var i=listeners.length;i--;){var listener=listeners[i];for(var j=inputs.length;j--;)if(listener.relevantInputs.indexOf(inputs[j].id)>=0)continue loop;listener.domNode.removeEventListener(listener.eventName,listener.func)}}