Skip to content

Commit 65ce09c

Browse files
committed
Pre mapping is now respected by automatic mapping fixes and close issue #11
1 parent 2a9b57c commit 65ce09c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ModelCore.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,10 @@
466466
//Magic Mapping
467467
var field;
468468
content[i].$mapping = {};
469+
470+
if(typeof model.$mapping != "undefined")
471+
angular.extend(content[i].$mapping,model.$mapping);
472+
469473
for(field in content[i]) {
470474
if(field != "$mapping")
471475
content[i].$mapping[field] = true;

0 commit comments

Comments
 (0)