Comments (5)
Code needs to be:
Child.__super__.foo.call(this);
Also, the Child's constructor won't call the Parent's constructor. You need to use __super__
if you want that.
from ajax-solr.
Thank you for clarifying. I got off on the inheritance trail because of something I observed with ParameterHashStore earlier this week, but your suggestion works and so does ParameterHashStore when I now test it in isolation, so I'll take another look at my code.
from ajax-solr.
So, funny story, the first thing I did in response to your suggestion was hop over to ParameterHashStore and add a call to the super constructor. ...Then I played with my example for a while and forgot I had changed ParameterHashStore when I went back to test it in isolation. In fact, without the explicit call, it does fail for the following example:
var Manager = new AjaxSolr.Manager({
solrUrl: 'http://evolvingweb.ca/solr/reuters/'
});
Manager.setStore(new AjaxSolr.ParameterHashStore());
Manager.init();
An error occurs in ParameterHashStore.init on the expression "exposed.length" because exposed is undefined.
Sorry for the confusion, but unless I'm again missing something about the usage, it looks like ParameterHashStore needs to call the super constructor. Other classes (possibly ParameterYUIStore?) may have the same problem.
from ajax-solr.
Ah, good catch! I've pushed a fix. Let me know if it works now.
from ajax-solr.
Much better, thanks!
from ajax-solr.
Related Issues (20)
- Add a widget that uses MoreLikeThis
- Support for SpellCheckComponent HOT 1
- Add a widget that uses TermsComponent
- Add a widget for multiselect facets with configurable operand
- Websolr integration HOT 7
- Better escaping
- auto widget creation based on return factes HOT 1
- Demo not working HOT 3
- PagerWidget.js / ParameterHistoryStore.js / history.js IE Issue HOT 2
- Unable to fetch data from local solr application using ajax solr HOT 3
- Add a bower package
- ERROR: Cannot read property 'length' of undefined HOT 1
- Demo website broken? HOT 1
- Not able to fetch reuters data HOT 13
- Not able to show the Calendar widget HOT 2
- Phrase level autosuggestions using suggesters
- Demo Site Not Working HOT 6
- Ajax-Solr not work after change jquery.min.js 1.7.2 to newer version (1.11.2)
- Range widget
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 ajax-solr.