Closed (fixed)
Project:
Lost & found issues
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 Dec 2012 at 16:10 UTC
Updated:
18 Dec 2012 at 17:21 UTC
Jump to comment: Most recent, Most recent file
We should use viewsHstFilter instead of views_hst_filter.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | views_hst_filter-camelcase_namespace-1858132-1.patch | 419 bytes | yannickoo |
Comments
Comment #1
yannickooComment #2
ser_house commentedApplying :)
P.S.: I wrote wrong issue number and I don't know how remove this commit :(
Comment #3
Sk8erPeter commentedbtw. why is
if ('views_hst_filter_ajax_callback' == Drupal.ajax[ajaxObject].callback)better than
if (Drupal.ajax[ajaxObject].callback == 'views_hst_filter_ajax_callback')from a readability aspect? To me, the second one is more readable, when I take a quick look at it.
Comment #4
ser_house commented@Sk8erPeter
'views_hst_filter_ajax_callback'in that case is constant, I usually place the constant to left side.Code Complete :)
Comment #5
Sk8erPeter commentedI know what this is. I accept it, it's just a coding habit, and you don't need to refer to any kind of books to confirm your own habit (or refer to others' coding habits) - it's just a matter of preferences. I don't like to accept one book as THE book that tells THE truth.
"so many men so many minds"
Comment #6
yannickooThe only different is that you would get an error when you try to assign a variable to the string but this is not the case so we could do it like usual. BTW this is called yoda condition. I created a follow up issue #1858224: Revert yoda condition
Comment #7
ser_house commented@Sk8erPeter
You asked I answered.