Today I had one of the weirdest bugs of the year. With kendo combobox, whenever a dropdown arrow is clicked, the dropdown would roll up immediately and page would automatically focus on another input.
Yearly Archives: 2017
Links: Front End Performance Optimisation
Where to find:
- Slides*: https://goo.gl/Bt6uA5
- Blog: http://luxiyalu.com
- Email: [email protected]
- Git: https://github.com/Luxiyalu
*All the references of the talk are in the Author’s note part under each slide.
You have to install development tools first.
That was a very vague error message when installing certain gems. What we need to do is:
Deferring Execution in JavaScript
For people who use Angular, calling $timeout(fn)
without a second parameter is a very familiar way of deferring execution.
But what about in plain JavaScript?
Angular Testing: Understanding $componentConstructor
Angular testing can be confusing. To make it less confusing, lets talk about a major part: $componentController
.
Git Commit Weirdness
Sometimes when we pull from upstream origin in terminal, we see git prompting to enter vim. And if we left it hanging there and went ahead committing somewhere else, it would treat all those changes in master as your own contribution, because merge didn’t happen before commit.
“Angular” Sanitize
We don’t actually need $sanitize
to sanitize strings.
ng-bind
automatically implements sanitizing in the background with textContent
. However, sometimes we need to pass string in as template in controllers and services, or pass it in as the exact content of “name
” attribute of an input, then $sanitize
doesn’t work anymore.