(function ($) {
var ATTR_PREFIX = "data-dialog-";
var getKeys = function (obj) {
if (Object.keys) {
return Object.keys(obj);
}
var keys = [];
for (var key in obj) {
if (obj.hasOwnProperty(key)) {
keys[keys.length] = key;
}
}
return keys;
};
var parseNone = function (s) {
if (s === "") {
return s;
}
return s || null;
};
var parseBool = function (s) {
if (s) {
s = s.toString().toLowerCase();
switch (s) {
case "true":
case "yes":
case "1":
return true;
default:
break;
}
}
return false;
};
var parseFunction = function (body) {