Functiondojox.lang.utils.updateWithPattern

dojo.require("dojox.lang.utils");
defined in dojox/lang/utils.js

updates an existing object in place with properties from an "source" object.

Usage

function (/*Object*/ target, /*Object*/ source, /*Array*/ pattern, /*Boolean?*/ conv) (view source)
parametertypedescription
targetObjectthe "target" object to be updated
sourceObjectthe "source" object, whose properties will be used to source the existed object.
patternArrayan array of properties to be copied
convBooleanOptional. force conversion to the original type