diff --git a/CHANGELOG.md b/CHANGELOG.md index c78eb5b..1e498d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,15 @@ +v0.1.10 / Apr 8 2015 +========================= + * [`unknown`][6] :bug: Hotfix [#3][6A] + +[6A]: https://github.com/59naga/jaggy/issues/3 +[6]: https://github.com/59naga/jaggy/commit/ + v0.1.9 / Apr 7 2015 ========================= - * [`a907a0a`][5] :lipstick: Add ng-annotate for uglifyjs + * [`d36c425`][5] :lipstick: Add ng-annotate for uglifyjs -[5]: https://github.com/59naga/jaggy/commits/master +[5]: https://github.com/59naga/jaggy/commit/d36c425846abff547f719c43dc2ecf67097079e8 v0.1.8 / Mar 30 2015 ========================= diff --git a/lib/jaggy.coffee b/lib/jaggy.coffee index 6cb26d8..53173f7 100644 --- a/lib/jaggy.coffee +++ b/lib/jaggy.coffee @@ -1,6 +1,6 @@ Jaggy= -> - Jaggy.createSVG.apply null,arguments if typeof window isnt 'undefined' - Jaggy.gulpPlugin.apply null,arguments if typeof window is 'undefined' + Jaggy.createSVG arguments... if window? + Jaggy.gulpPlugin arguments... if not window? Jaggy.cli= -> cli= new (require 'commander').Command @@ -100,7 +100,7 @@ Jaggy.setCache= (url,element)-> catch error localStorage.removeItem 'jaggy:'+url - console.error error + console.error 'jaggy:'+url,error # Use for angular.js Jaggy.angularModule= (window)-> @@ -121,7 +121,7 @@ Jaggy.angularModule= (window)-> options[key]= value options.cache= !! jaggyConfig.useCache - #fix + # fix url= attrs.src url?= attrs.ngSrc @@ -131,6 +131,15 @@ Jaggy.angularModule= (window)-> return element.replaceWith jaggyEmptyImage element.replaceWith svg + # fix animatedGif caching + if svg.match and svg.match '