Skip to content

Commit

Permalink
Moved dist files
Browse files Browse the repository at this point in the history
  • Loading branch information
Shekhar Sharma committed Jun 10, 2015
1 parent a222675 commit bb2b1e9
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 13 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
node_modules/
bower_components/
tmp/
*.tmp
*.bak
*.swp
*~.nib

*.log
*.Cache
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = function (grunt) {
},
dist: {
files: {
'jquery.invertImages.min.js': ['jquery.invertImages.js']
'dist/jquery.invertImages.min.js': ['jquery.invertImages.js']
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2013 Shekhar Sharma
Copyright (c) 2014 Shekhar Sharma <itsmes.sh@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down

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

1 change: 1 addition & 0 deletions dist/jquery.invertImages.min.js.map

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

14 changes: 7 additions & 7 deletions jquery.invertImages.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
* jQuery Invert Images
* Licensed under the MIT license
* Author: @shekhardesigner
* Version: 1.0.2
* Version: 1.0.3
*
* The MIT License (MIT)
*
* Copyright (c) 2013 Shekhar Sharma
* Copyright (c) 2015 Shekhar Sharma <itsmes.sh@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
Expand Down Expand Up @@ -96,20 +96,20 @@

$("html").removeClass("inverted");

$elm.next('svg').remove();
$elm.next("svg").remove();
$elm.removeClass("hide");
$elm.removeData('invertImages');
$elm.removeData("invertImages");
}
};

$.fn.invertImages = function (options) {
return this.each(function () {
var $this = $(this),
data = $(this).data('invertImages'),
data = $(this).data("invertImages"),
option = options;

if(!data) $.data(this, "invertImages", new InvertImages(this, option));
if(data && typeof option === 'string') data[option]();
if(!data && typeof option === "object") $.data(this, "invertImages", new InvertImages(this, option));
if(data && typeof option === "string") data[option]();

});
};
Expand Down
1 change: 0 additions & 1 deletion jquery.invertImages.min.js.map

This file was deleted.

0 comments on commit bb2b1e9

Please sign in to comment.