mirror of
https://github.com/OMGeeky/andors-trail.git
synced 2026-02-23 15:38:29 +01:00
Refactor content editor - Add support for loading actual content with http get.
This commit is contained in:
@@ -17,7 +17,7 @@ var ATEditor = (function(ATEditor, _) {
|
||||
var key;
|
||||
for (key in defaults) {
|
||||
var v = defaults[key];
|
||||
if (!o[key]) {
|
||||
if ((!o[key]) && (o[key] !== 0)) {
|
||||
o[key] = v;
|
||||
} else if (_.isObject(v)) {
|
||||
copyDefaults(o[key], v);
|
||||
@@ -102,6 +102,10 @@ var ATEditor = (function(ATEditor, _) {
|
||||
}
|
||||
}
|
||||
|
||||
_.toBool = function(b) {
|
||||
return b ? true : false;
|
||||
};
|
||||
|
||||
ATEditor.utils = {
|
||||
deepClone: deepClone
|
||||
,removeDefaults: removeDefaults
|
||||
|
||||
Reference in New Issue
Block a user