function(element) {
            if (element.is("option")) {
                return {
                    id:element.prop("value"),
                    text:element.text(),
                    element: element.get(),
                    css: element.attr("class"),
                    disabled: element.prop("disabled"),
                    locked: equal(element.attr("locked"), "locked") || equal(element.data("locked"), true)
                };
            } else if (element.is("optgroup")) {
                return {
                    text:element.attr("label"),
                    children:[],
                    element: element.get(),
                    css: element.attr("class")
                };
            }
        }
function(element) {
            if (element.is("option")) {
                return {
                    id:element.prop("value"),
                    text:element.text(),
                    element: element.get(),
                    css: element.attr("class"),
                    disabled: element.prop("disabled"),
                    locked: equal(element.attr("locked"), "locked") || equal(element.data("locked"), true)
                };
            } else if (element.is("optgroup")) {
                return {
                    text:element.attr("label"),
                    children:[],
                    element: element.get(),
                    css: element.attr("class")
                };
            }
        }
function ( element ) { if ( element . is ( "option" ) ) { return { id : element . prop ( "value" ) , text : element . text ( ) , element : element . get ( ) , css : element . attr ( "class" ) , disabled : element . prop ( "disabled" ) , locked : equal ( element . attr ( "locked" ) , "locked" ) || equal ( element . data ( "locked" ) , true ) } ; } else if ( element . is ( "optgroup" ) ) { return { text : element . attr ( "label" ) , children : [ ] , element : element . get ( ) , css : element . attr ( "class" ) } ; } }
abstract
abstract