Skip to content

Commit

Permalink
fixed .motio(false) alias not working properly
Browse files Browse the repository at this point in the history
  • Loading branch information
darsain committed Jul 17, 2012
1 parent 9fc62d3 commit 610047c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions jquery.motio.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* jQuery Motio v1.0.0
* jQuery Motio v1.0.1
* https://github.com/Darsain/motio
*
* Licensed under the MIT license.
Expand Down Expand Up @@ -378,7 +378,7 @@
// Update background position
setPos( newpos );

};
}


/**
Expand Down Expand Up @@ -477,11 +477,11 @@
$.fn[pluginName] = function( options, returnInstance ){

var method = false,
instances = [],
methodArgs;
methodArgs,
instances = [];

// Basic attributes logic
if( options && !$.isPlainObject( options ) ){
if( typeof options !== 'undefined' && !$.isPlainObject( options ) ){
method = options === false ? 'destroy' : options;
methodArgs = arguments;
Array.prototype.shift.call( methodArgs );
Expand Down
12 changes: 6 additions & 6 deletions jquery.motio.min.js

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

0 comments on commit 610047c

Please sign in to comment.