Skip to content

Commit

Permalink
Cleaned up calls to deprecated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhyder committed Mar 23, 2015
1 parent 780c208 commit fe61097
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/service/entities/custom_object_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ module.exports = function CustomObjectServiceModule(pb) {
post[key] = pb.BaseController.sanitize(post[key], pb.BaseController.getContentSanitizationRules());
}
else if(custObjType.fields[key].field_type == CHILD_OBJECTS_TYPE) {
if(pb.utils.isString(post[key])) {
if(util.isString(post[key])) {

//strips out any non ID strings.
//TODO This should really move to validation.
Expand All @@ -1112,7 +1112,7 @@ module.exports = function CustomObjectServiceModule(pb) {
//do nothing because it can only been a string ID. Validation
//should verify this before persistence.
}
else if (pb.utils.isString(post[key])){
else if (util.isString(post[key])){

//when nothing else matches and we just have a string. We should sanitize it
post[key] = pb.BaseController.sanitize(post[key]);
Expand Down
2 changes: 1 addition & 1 deletion include/service/entities/template_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ module.exports = function(pb) {

//the flag was not registered. Hand it off to a handler for any
//catch-all processing.
if (pb.utils.isFunction(self.unregisteredFlagHandler)) {
if (util.isFunction(self.unregisteredFlagHandler)) {
self.unregisteredFlagHandler(flag, cb);
}
else {
Expand Down

0 comments on commit fe61097

Please sign in to comment.