Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions jquery.lettering.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@


var methods = {
init : function() {
letters : function() {

return this.each(function() {
injector($(this), '', 'char', '');
Expand Down Expand Up @@ -62,8 +62,8 @@
// Method calling logic
if ( method && methods[method] ) {
return methods[ method ].apply( this, [].slice.call( arguments, 1 ));
} else if ( method === 'letters' || ! method ) {
return methods.init.apply( this, [].slice.call( arguments, 0 ) ); // always pass an array
} else if ( ! method ) {
return methods.letters.apply( this, [].slice.call( arguments, 0 ) ); // always pass an array
}
$.error( 'Method ' + method + ' does not exist on jQuery.lettering' );
return this;
Expand Down