| Issue 478: | Unable to get property options of undefinied or null reference (regression of r693). | |
| 2 people starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem?
1. Configure a dynatree using external data. (I'm also using lazy loading - if this matters somehow.
2. Reload the page.
var options = $.extend({}, this.tree.options.ajaxDefaults, ajaxOptions, {
success: function(data, textStatus, jqXHR){
// <this> is the request options
//self.tree.logDebug("appendAjax().success");
var prevPhase = self.tree.phase,
options = this.tree.options; // #473 <====== HERE
self.tree.phase = "init";
// postProcess is similar to the standard dataFilter hook,
// but it is also called for JSONP
if( options.postProcess ){
data = options.postProcess.call(this, data, this.dataType);
}
After revision r693 I'm having the following error:
-Unable to get property options of undefinied or null reference.
My code:
<script type="text/javascript">
$(function(){
$("#tree").dynatree({
title: "Lazy loading sample",
fx: { height: "toggle", duration: 200 },
autoFocus: false, // Set focus to first child, when expanding or lazy-loading.
title : "DynaTree",
initAjax: {
data: {},
url: '/eye/tree_menu/json/{{proj_name}}'
// url: '/static/sample-data1.json'
},
onActivate: function(node) {
$("#echoActive").text("" + node + " (" + node.getKeyPath()+ ")");
},
onLazyRead: function(node){
node.appendAjax({
// url: '/static/sample-data2.json',
url: '/eye/tree_menu/json/{{proj_name}}',
data: {key: node.data.key},
addActiveKey: true
});
}
});
});
</script>
<body class="example">
<div style="height:500px" id="tree"></div>
</body>
Thank you for your work!
Mar 16, 2014
Yes, it does. Thank You.
Mar 16, 2014
(No comment was entered for this change.)
Summary:
Unable to get property options of undefinied or null reference (regression of r693).
(was: Unable to get property options of undefinied or null reference.)
Status: Fixed |
Labels: Milestone-Release1.2.6