jquery-boilerplate / jquery-patterns

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

Prototype object alias #6

Closed aariacarterweir closed 11 years ago

aariacarterweir commented 12 years ago

Haven't got around to any proper work on this, but suggesting a slight change to the declaration of the Plugin constructor here. You may / may not agree, and I admit it might not be that great of an idea, however have found this structural change quite useful myself.

Modifying structure slightly so that the Plugin constructor function is declared as a variable and adding an alias to the Plugin prototype object. This might ruffle some feathers, but adds a little more contextual meaning to extending the Plugin constructor.

yckart commented 11 years ago

@addyosmani Hmm, I liked this proposal... Some words why you've closed this PR?

addyosmani commented 11 years ago

It was closed due to age. Happy to re-open if we can get it rebased against latest.

yckart commented 11 years ago

Okay, thanks! I think to create a seperate wiki article is much better, maybe as a "structuring"-page. I'll write something soon.