diff --git a/select2-latest.html b/select2-latest.html index 399b92b1..2d572ef7 100644 --- a/select2-latest.html +++ b/select2-latest.html @@ -592,7 +592,7 @@ $("#e8").select2(); $("#e8_get").click(function () { alert("Selected value is: "+$("#e8").select2("val"));}); $("#e8_set").click(function () { $("#e8").select2("val", "CA"); }); $("#e8_cl").click(function() { $("#e8").select2("val", ""); }); -$("#e8_get2").click(function () { alert("Selected data is: "+JSON.stringify($("#e8").select2("data")));}); +$("#e8_get2").click(function () { var data = $("#e8").select2("data"); delete data.element; alert("Selected data is: "+JSON.stringify(data));}); $("#e8_set2").click(function () { $("#e8").select2("data", {id: "CA", text: "California"}); }); $("#e8_open").click(function () { $("#e8").select2("open"); }); $("#e8_close").click(function () { $("#e8").select2("close"); }); diff --git a/select2-master b/select2-master index 5a9905bf..83050fd2 160000 --- a/select2-master +++ b/select2-master @@ -1 +1 @@ -Subproject commit 5a9905bfa7ea1185b30a6612732ca5964f3f870e +Subproject commit 83050fd2fa4d31732f293d6e6c88ea7eb30378cc