Skip to content

Instantly share code, notes, and snippets.

View pierceray's full-sized avatar

Ray Pierce pierceray

View GitHub Profile
@pierceray
pierceray / geo.js
Created January 30, 2012 21:18 — forked from craveytrain/geo.js
dataFilter method
$(document).ready(function () {
$.ajaxSetup({
type: "POST",
contentType: "application/json; charset=utf-8",
data:"{}",
dataFilter: function(data) {
var msg = jQuery.parseJSON(data);
return (msg.hasOwnProperty('d')) ? msg.d : msg;
});