Skip to content

Commit 266f386

Browse files
committed
All good except angular/angular.js#8039
1 parent a5d422c commit 266f386

File tree

4 files changed

+3
-10
lines changed

4 files changed

+3
-10
lines changed

dist/schema-form.min.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ angular.module('schemaForm',deps);
2121
var ObjectPath = {
2222
parse: function(str){
2323
if(typeof str !== 'string'){
24-
console.log(str)
2524
throw new TypeError('ObjectPath.parse must be passed a string');
2625
}
2726

@@ -611,7 +610,7 @@ angular.module('schemaForm').provider('schemaForm',[function(){
611610
angular.forEach(schema.properties,function(v,k){
612611
var path = options.path.slice();
613612
path.push(k);
614-
if (options.ignore[path] !== true) {
613+
if (options.ignore[ObjectPath.stringify(path)] !== true) {
615614
var required = schema.required && schema.required.indexOf(k) !== -1;
616615

617616
var def = defaultFormDefinition(k,v,{
@@ -753,8 +752,6 @@ angular.module('schemaForm').provider('schemaForm',[function(){
753752
var lookup = stdForm.lookup;
754753
return postProcessFn(form.map(function(obj){
755754

756-
// console.log(obj)
757-
758755
//handle the shortcut with just a name
759756
if (typeof obj === 'string') {
760757
obj = { key: obj };

examples/data/keys.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@
3737
}
3838
}
3939
},
40-
"form": ["*"],
41-
"form1": [
40+
"form": [
4241
"['a[\"b\"].c']",
4342
{
4443
"key": "array-key",

src/module.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ angular.module('schemaForm',deps);
2121
var ObjectPath = {
2222
parse: function(str){
2323
if(typeof str !== 'string'){
24-
console.log(str)
2524
throw new TypeError('ObjectPath.parse must be passed a string');
2625
}
2726

src/services/schema-form.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ angular.module('schemaForm').provider('schemaForm',[function(){
129129
angular.forEach(schema.properties,function(v,k){
130130
var path = options.path.slice();
131131
path.push(k);
132-
if (options.ignore[path] !== true) {
132+
if (options.ignore[ObjectPath.stringify(path)] !== true) {
133133
var required = schema.required && schema.required.indexOf(k) !== -1;
134134

135135
var def = defaultFormDefinition(k,v,{
@@ -271,8 +271,6 @@ angular.module('schemaForm').provider('schemaForm',[function(){
271271
var lookup = stdForm.lookup;
272272
return postProcessFn(form.map(function(obj){
273273

274-
// console.log(obj)
275-
276274
//handle the shortcut with just a name
277275
if (typeof obj === 'string') {
278276
obj = { key: obj };

0 commit comments

Comments
 (0)