jquery-boilerplate / jquery-patterns

A variety of jQuery plugin patterns for jump starting your plugin development
1.59k stars 242 forks source link

Radical changes in basic patern #24

Closed DiegoLopesLima closed 11 years ago

DiegoLopesLima commented 11 years ago

I changed the structure the basic plugin pattern.

yckart commented 11 years ago

Mhh, interesting thoughts, however I don't think that your approach brings any improvements to the people. +@addyosmani +@zenorocha What do you think?

As I can see is the options-object never available in any method and in addition, a method returns never anything, until the user does it themselves. (Zeno and I have already written something about this topic https://github.com/jquery-boilerplate/boilerplate/wiki/Extending-jQuery-Boilerplate)

DiegoLopesLima commented 11 years ago

The use logic is the same in general. I can create a plugin using this structure to demo if they want to, so how I did in best options pattern.

DiegoLopesLima commented 11 years ago

I'll close this pull request... I concludes that still need adjustments... When I make adjustments, I open a new issue...