Comments (1)
It's more about style for debugging. To me, undefined
is "this was either not set or has been set to blank". null
is "this is intentionally blank. If it hasn't been set something is wrong".
We need it on every instance (shared across prototype leads to clashes), so I set it in the constructor.
from backbone.nativeview.
Related Issues (17)
- Am I missing something? $el still exists. HOT 7
- Exoskeleton + Browserify HOT 5
- Backbone.$ is not a function HOT 1
- this._domEvents isn't initialized properly when mixing into Backbone.View HOT 3
- Should delegate align with jQuery behavior? HOT 11
- Undelegating differs from jQuery HOT 1
- Register on npm HOT 5
- Integrating into core backbonejs HOT 1
- Working with require()'s HOT 7
- events issues when no el is set HOT 3
- InputEvents not binding correctly HOT 14
- Blur/Focus do not bubble up and therefore not accessible via this.delegate HOT 1
- Illegal invocation due to this.el being null
- bower install backbone.nativeview does not work HOT 1
- Publish 0.3.0 to NPM HOT 2
- How to "Backbone.NativeView + Browserify" 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 backbone.nativeview.