unify / unify

Unify Project
http://www.unifyjs.com
Other
152 stars 16 forks source link

added more positions for popovermanager.show(). #154

Closed mcdit closed 10 years ago

mcdit commented 10 years ago

Possible positions are top, bottom, left, right, full, center, window. Added switch for pos selection

"if statements are generally faster than switch statements when there are just one or two conditions to be evaluated. When there are more than two conditions, and the conditions are simple (not ranges), the switch statement tends to be faster. This is because the amount of time it takes to execute a single condition in a switch statement is often less than it takes to execute a single condition in an if statement, making the switch statement optimal only when there are a larger number of conditions." --> http://oreilly.com/server-administration/excerpts/even-faster-websites/writing-efficient-javascript.html#the_fastest_conditionals

fastner commented 10 years ago

thanx