My favorites | Sign in
Project Home Downloads
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
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
Status:  Fixed
Owner:  ----
Closed:  Mar 2014


 
Reported by michalry...@gmail.com, Mar 14, 2014
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 14, 2014
Project Member #1 moo...@wwwendt.de
Does this fix it?
https://code.google.com/p/dynatree/source/detail?r=699
Status: Waiting
Labels: Milestone-Release1.2.6
Mar 16, 2014
#2 michalry...@gmail.com
Yes, it does.

Thank You.
Mar 16, 2014
Project Member #3 moo...@wwwendt.de
(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

Powered by Google Project Hosting