Closed (fixed)
Project:
Corner
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
9 Jan 2009 at 20:16 UTC
Updated:
12 Mar 2009 at 00:20 UTC
hi,
had this patch applied for a while fixes this small error, applies to 2.x branch too (with offset).
| Comment | File | Size | Author |
|---|---|---|---|
| corner-small-fixes.patch | 1.53 KB | eMPee584 |
Comments
Comment #1
kirie commentedThanks! Patch committed to HEAD (with minor adjustments).
Comment #2
eMPee584 commentedthe minor adjustment
is actually pretty dull because the object casting transforms the array into an object all by itself. So basically you just converted several lines of working code into ugly working code ;-P
Comment #3
kirie commentedYeah, I should have removed that object casting in the return - I'll fix it tomorrow, thanks for telling.
Comment #4
eMPee584 commentedyour motivation for that is still unclear to me. Huh?
Comment #5
kirie commentedThere is no need to cast the object into an object - as its already an object :)
Comment #6
eMPee584 commentedyeah sure but creating an array and casting to an object is allowed and plain shorter!
ahh whatever as long as it don't throw errors.
Comment #7
kirie commentedI understand what you are saying, however, it's probably better to use an object there, as people glancing at the code immediately understands that we're dealing with an object (could be easy to miss the object casting in the return) - shorter isn't necessarily better, especially if the price is less readability, imho :)
Comment #8
kirie commented