Skip to content

Commit

Permalink
remove duplicate isLoaded
Browse files Browse the repository at this point in the history
  • Loading branch information
staaky committed Nov 9, 2014
1 parent d95c1c0 commit 23495d0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "voila",
"version": "1.0.5",
"version": "1.0.6",
"description": "A jQuery plugin that provides callbacks for images, letting you know when they've loaded.",
"keywords": [
"image",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "voila",
"title": "Voilà",
"version": "1.0.5",
"version": "1.0.6",
"description": "A jQuery plugin that provides callbacks for images, letting you know when they've loaded.",
"keywords": [
"image",
Expand Down
1 change: 0 additions & 1 deletion src/imageready.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ $.extend(ImageReady.prototype, {
if (this.img.complete && $.type(this.img.naturalWidth) != 'undefined') {
setTimeout($.proxy(function() {
if (this.img.naturalWidth > 0) {
this.isLoaded = true;
this.success();
} else {
this.error();
Expand Down
3 changes: 1 addition & 2 deletions voila.pkgd.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Voilà - v1.0.5
* Voilà - v1.0.6
* (c) 2014 Nick Stakenburg
*
* MIT License
Expand Down Expand Up @@ -179,7 +179,6 @@ $.extend(ImageReady.prototype, {
if (this.img.complete && $.type(this.img.naturalWidth) != 'undefined') {
setTimeout($.proxy(function() {
if (this.img.naturalWidth > 0) {
this.isLoaded = true;
this.success();
} else {
this.error();
Expand Down
4 changes: 2 additions & 2 deletions voila.pkgd.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 23495d0

Please sign in to comment.