brandizzi / golem

https://bitbucket.org/brandizzi/golem/wiki/Home
0 stars 0 forks source link

Make the caller receive the selector as a named parameter #3

Open brandizzi opened 9 years ago

brandizzi commented 9 years ago

Original report by Adam Victor Brandizzi (Bitbucket: brandizzi, GitHub: brandizzi).


Currently we get the selector directly, as in

animator.fill('ul.list li', 'value')

Instead, we should pass it as a named parameter:

animator.fill(selector='ul.list li', value='value')

so we can give other kinds of queries, such as

animator.fill(class='list', value='value')