Comments (3)
I understand that this creates some unsightly boilerplate bindings, but is there a significant enough utility / readability improvement to reducing these statements that it's worth introducing another dependency or potential breakage of ecosystem tooling in development? (react-hot-loader was mentioned in the linked StackOverflow article)
If the risk is low and we think this would significantly improve the application's readability that's fine - personally they're not too big an impediment and I'd prioritize keeping risk to the app / dev workflow as low as possible.
from ccdb5-ui.
yeah, It's your choice. This is this function from underscore:
_.bindAll = function(obj) {
var i, length = arguments.length, key;
if (length <= 1) throw new Error('bindAll must be passed function names');
for (i = 1; i < length; i++) {
key = arguments[i];
obj[key] = _.bind(obj[key], obj);
}
return obj;
};
from ccdb5-ui.
bindAll
is now part of the codebase, but is not deployed to every module. Will close this issue since the ability exists and the code can be refactored when it is revisited
from ccdb5-ui.
Related Issues (20)
- Type-ahead removes strings when wildcards used HOT 1
- Aggregation misalignment
- User-Agent HTTP header is assumed
- Using the keyboard only to navigate on CCDB traps you in the search box
- Today Sat 28/2020 HOT 2
- 432020 HOT 1
- 432020/11:9 HOT 4
- To discover HOT 1
- Display notification when JS isn't enabled
- Update readme HOT 3
- Test issue
- Update `cfpb-expandables`
- Typeahead should use the existing style HOT 5
- Index page should display a notification when API call fails
- Don't put templates at app root level HOT 1
- <em> tag is displayed for complaint ID
- After switching to Node 8, Travis is no longer pushing assets HOT 3
- Internet Explorer Tweaks HOT 1
- Use autoprefixer HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ccdb5-ui.