Skip to content

Commit

Permalink
change plugin to filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
uxder committed Mar 2, 2012
1 parent 36ae9da commit db62a48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vivid.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,15 @@ Vivid.filter.blackWhite = (function() {
* Constructor
* @param {Object Literal} [settings] Object that contains elem, $elem, imgW, imgH, $canvas, ctx, options
*/
var plugin = function(settings) {
var filter = function(settings) {
//set the settings
s = settings;
//initialize plugin
this.init();
}

//Pubic Methods
plugin.prototype = {
filter.prototype = {
init: function() {
var imgd = s.ctx.getImageData(0, 0, s.imgW, s.imgH);
var pix = imgd.data;
Expand All @@ -204,6 +204,6 @@ Vivid.filter.blackWhite = (function() {
}

//return the plugin object
return plugin;
return filter;
})();

0 comments on commit db62a48

Please sign in to comment.