Trying to implement this API in a way that works pre and post jQuery UI 1.9:I have a subtle feeling that there should be a more elegant way./** Prefix number with '+'/'-' or return empty string for 0. */function offsetString(n){    return n === 0 ?  :(( n > 0 ) ? (+ + n) : ( + n)); }var posOpts = {    at: left top,    of: $target};if( isVersionAtLeast($.ui.version, 1, 9) ){    posOpts.my = left + offsetString(markerOffsetX) +        top + offsetString(markerOffsetY);} else {    posOpts.my = left top;    posOpts.offset =  + markerOffsetX +   + markerOffsetY;}$dropMarker.position(posOpts);
Using jQuery UI .position() in a backwards compatible way
javascript;jquery ui