Skip to content

Commit 9484e70

Browse files
author
Fengyuan Chen
committed
Release v0.3.2
1 parent ef01b11 commit 9484e70

File tree

8 files changed

+34
-28
lines changed

8 files changed

+34
-28
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Changelog
22

33

4+
## 0.3.2 (Mar 11, 2016)
5+
6+
- Fix the parameters error on the "url" option when it is a function
7+
8+
49
## 0.3.1 (Feb 2, 2016)
510

611
- Added tests.

README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -756,11 +756,12 @@ If you have to use other viewer with the same namespace, just call the `Viewer.n
756756

757757
## Browser support
758758

759-
- Chrome (latest 2)
760-
- Firefox (latest 2)
759+
- Chrome (latest)
760+
- Firefox (latest)
761+
- Safari (latest)
762+
- Opera (latest)
763+
- Edge (latest)
761764
- Internet Explorer 9+
762-
- Opera (latest 2)
763-
- Safari (latest 2)
764765

765766

766767

dist/viewer.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*!
2-
* Viewer.js v0.3.1
2+
* Viewer.js v0.3.2
33
* https://github.com/fengyuanchen/viewerjs
44
*
55
* Copyright (c) 2015-2016 Fengyuan Chen
66
* Released under the MIT license
77
*
8-
* Date: 2016-02-02T11:35:36.273Z
8+
* Date: 2016-03-11T07:58:11.565Z
99
*/
1010
.viewer-zoom-in:before,
1111
.viewer-zoom-out:before,

dist/viewer.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*!
2-
* Viewer.js v0.3.1
2+
* Viewer.js v0.3.2
33
* https://github.com/fengyuanchen/viewerjs
44
*
55
* Copyright (c) 2015-2016 Fengyuan Chen
66
* Released under the MIT license
77
*
8-
* Date: 2016-02-02T11:35:52.542Z
8+
* Date: 2016-03-11T07:58:11.565Z
99
*/
1010

1111
(function (global, factory) {
@@ -858,7 +858,7 @@
858858
if (isString(url)) {
859859
url = image.getAttribute(url);
860860
} else if (isFunction(url)) {
861-
url = url.call(element, _this);
861+
url = url.call(image, image);
862862
}
863863

864864
items.push(

dist/viewer.min.css

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/viewer.min.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

+7-7
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,10 @@
3737
</div>
3838
<nav class="collapse navbar-collapse" id="navbar-collapse-1" role="navigation">
3939
<ul class="nav navbar-nav navbar-right">
40-
<li><a href="https://github.com/fengyuanchen/viewerjs/tree/v0.3.1/README.md">Docs</a></li>
40+
<li><a href="https://github.com/fengyuanchen/viewerjs/tree/v0.3.2/README.md">Docs</a></li>
4141
<li><a href="https://github.com/fengyuanchen/viewerjs">GitHub</a></li>
42-
<li><a href="https://fengyuanchen.github.io/viewer" title="Viewer as jQuery plugin">Viewer</a></li>
42+
<li><a href="//fengyuanchen.github.io">More</a></li>
4343
<li><a href="http://chenfengyuan.com">About</a></li>
44-
<li><a href="http://fengyuanchen.github.io">More</a></li>
4544
</ul>
4645
</nav>
4746
</div>
@@ -50,11 +49,11 @@
5049
<!-- Jumbotron -->
5150
<div class="jumbotron docs-jumbotron">
5251
<div class="container">
53-
<h1>Viewer.js <small class="version">v0.3.1</small></h1>
52+
<h1>Viewer.js <small class="version">v0.3.2</small></h1>
5453
<p class="lead">JavaScript image viewer.</p>
5554
<div class="docs-carbonads-container">
5655
<div class="docs-carbonads">
57-
<script type="text/javascript" id="_carbonads_js" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=fengyuanchen" async></script>
56+
<script id="_carbonads_js" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=fengyuanchen" async></script>
5857
</div>
5958
</div>
6059
</div>
@@ -270,15 +269,16 @@ <h3 class="page-header">Methods</h3>
270269
<div class="container">
271270
<p class="heart"></p>
272271
<ul class="list-inline links">
272+
<li><a href="https://github.com/fengyuanchen/viewerjs">GitHub</a></li>
273273
<li><a href="https://github.com/fengyuanchen/viewerjs/releases">Releases</a></li>
274-
<li><a href="https://github.com/fengyuanchen/viewerjs/issues">Issues</a></li>
275274
<li><a href="https://github.com/fengyuanchen/viewerjs/blob/master/LICENSE">License</a></li>
275+
<li><a href="http://chenfengyuan.com">About</a></li>
276276
</ul>
277277
</div>
278278
</footer>
279279

280280
<!-- Scripts -->
281-
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
281+
<script src="https://code.jquery.com/jquery-1.12.1.min.js"></script>
282282
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
283283
<script src="//fengyuanchen.github.io/js/common.js"></script>
284284
<script src="js/viewer.js"></script>

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "viewerjs",
33
"description": "JavaScript image viewer.",
4-
"version": "0.3.1",
4+
"version": "0.3.2",
55
"main": "dist/viewer.js",
66
"license": "MIT",
77
"repository": "fengyuanchen/viewerjs",
@@ -25,21 +25,21 @@
2525
"development"
2626
],
2727
"devDependencies": {
28-
"gulp": "^3.9.0",
28+
"gulp": "^3.9.1",
2929
"gulp-autoprefixer": "^3.1.0",
3030
"gulp-concat": "^2.6.0",
3131
"gulp-csscomb": "^3.0.6",
32-
"gulp-csslint": "^0.2.0",
32+
"gulp-csslint": "^0.2.2",
3333
"gulp-htmlcomb": "^0.1.0",
3434
"gulp-jscs": "^3.0.2",
3535
"gulp-jshint": "^1.12.0",
3636
"gulp-load-plugins": "^1.2.0",
37-
"gulp-minify-css": "^1.2.3",
38-
"gulp-qunit": "^1.3.0",
37+
"gulp-minify-css": "^1.2.4",
38+
"gulp-qunit": "^1.3.1",
3939
"gulp-rename": "^1.2.2",
4040
"gulp-replace": "^0.5.4",
41-
"gulp-sass": "^2.1.1",
41+
"gulp-sass": "^2.2.0",
4242
"gulp-sourcemaps": "^1.6.0",
43-
"gulp-uglify": "^1.5.1"
43+
"gulp-uglify": "^1.5.3"
4444
}
4545
}

0 commit comments

Comments
 (0)