Closed dmvaldman closed 10 years ago
Its nothing to do with generic sync, but options is not the object, its a reference to arguments[0] so the result of arguments is as expected. Are you sure on the final value of options? I cannot reproduce that.
function test(options){
console.log("options", options);
if(arguments.length == 2){
options = arguments[1];
console.log("arguments", arguments);console.log("options", options);
}
}
console.log("test with hello")
test({"Hello": "World"});
console.log("test with hello and foo")
test({"Hello": "World"}, {"Foo": "Bar"});
Is this still an issue? Draggble seems to be working with the newest code.
This has been fixed. Closing.
Are you ready?!
When GenericSync is called with 2 arguments, as in Draggable.js, at the end of this code, options has the value arguments[0], and arguments = [arguments[1], arguments[1]]
@michaelobriena @ftripier @fettermania