in partnership with mediatemple

Ticket #964 (closed defect: fixed)

Opened 1 month ago

Last modified 4 days ago

Error in Request.JSON, trunk1533.

Reported by: danillos Owned by:
Type: defect Priority: major
Milestone: Mootools version 1.2 Component: Core
Keywords: Cc:

Description

I found an error in Request.JSON, trunk1533.

Error:
This.headers has no properties
[Break on this error] this.headers.extend (( 'Accept': 'application / json', 'X-Request': 'JSON'));

Pick two requests in each link
Http://www.sook.com.br/mt/trunk1527.html [OK]
Http://www.sook.com.br/mt/trunk1533.html [This trunk have one error]

When you make a second request in 1533 launches an error.

PS: Please see in firebug.

Change History

Changed 1 month ago by kmike

  • priority changed from trivial to major

Changed 1 month ago by kmike

I think this is fixed in 1534, thanks kamicane)

Changed 1 month ago by kmike

works now with firefox2 & ie6, doesn't work with opera 9.5:

Event thread: click
Error:
name: TypeError?
message: Statement on line 1127: Cannot convert undefined or null to Object
Backtrace:

Line 1127 of linked script http://127.0.0.1/trends/lib/mootools-1534-debug.js

return arguments.callee.caller.parent.apply(this, arguments);

Line 3926 of linked script http://127.0.0.1/trends/lib/mootools-1534-debug.js

this.parent(options);

... Line 1117 of linked script http://127.0.0.1/trends/lib/mootools-1534-debug.js

return current.apply(this, arguments);

... Line 1074 of linked script http://127.0.0.1/trends/lib/mootools-1534-debug.js

var self = (arguments[0] !== $empty && this.initialize) ? this.initialize.apply(this, arguments) : this;

Line 150 of inline#1 script in http://127.0.0.1/trends/: In function load_tag_cloud

var myRequest = new Request.JSON({

Changed 1 month ago by kasi

Opera doesn't know arguments.callee.caller

function testingFunction() {
    alert(arguments.callee);
    alert(arguments.callee.caller);

}
function callerFunction() {
    testingFunction();
}
callerFunction();

shows undefined for the second alert.
tested with:
Opera 9.25 Build 8827 Win32

KASI

Changed 4 days ago by kamicane

  • status changed from new to closed
  • resolution set to fixed

already fixed.

Note: See TracTickets for help on using tickets.