1
1
/*!
2
2
* angular-schema-form
3
3
* @version 1.0.0-alpha.4
4
- * @date Mon, 03 Apr 2017 12:57:49 GMT
4
+ * @date Mon, 03 Apr 2017 13:29:07 GMT
5
5
* @link https://github.com/json-schema-form/angular-schema-form
6
6
* @license MIT
7
7
* Copyright (c) 2014-2017 JSON Schema Form
71
71
/******/ __webpack_require__ . p = "" ;
72
72
/******/
73
73
/******/ // Load entry module and return exports
74
- /******/ return __webpack_require__ ( __webpack_require__ . s = 19 ) ;
74
+ /******/ return __webpack_require__ ( __webpack_require__ . s = 21 ) ;
75
75
/******/ } )
76
76
/************************************************************************/
77
77
/******/ ( [
@@ -2729,7 +2729,7 @@ module.exports = __webpack_require__(4);
2729
2729
/***/ } )
2730
2730
/******/ ] ) ;
2731
2731
//# sourceMappingURL=json-schema-form-core.js.map
2732
- /* WEBPACK VAR INJECTION */ } . call ( exports , __webpack_require__ ( 2 ) , __webpack_require__ ( 18 ) . setImmediate ) )
2732
+ /* WEBPACK VAR INJECTION */ } . call ( exports , __webpack_require__ ( 2 ) , __webpack_require__ ( 19 ) . setImmediate ) )
2733
2733
2734
2734
/***/ } ) ,
2735
2735
/* 2 */
@@ -2759,7 +2759,8 @@ module.exports = g;
2759
2759
2760
2760
2761
2761
/***/ } ) ,
2762
- /* 3 */
2762
+ /* 3 */ ,
2763
+ /* 4 */
2763
2764
/***/ ( function ( module , __webpack_exports__ , __webpack_require__ ) {
2764
2765
2765
2766
"use strict" ;
@@ -2768,18 +2769,18 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
2768
2769
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_json_schema_form_core___default = __webpack_require__ . n ( __WEBPACK_IMPORTED_MODULE_0_json_schema_form_core__ ) ;
2769
2770
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_angular__ = __webpack_require__ ( 0 ) ;
2770
2771
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_angular___default = __webpack_require__ . n ( __WEBPACK_IMPORTED_MODULE_1_angular__ ) ;
2771
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_sf_builder_provider__ = __webpack_require__ ( 13 ) ;
2772
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_schema_form_decorators_provider__ = __webpack_require__ ( 11 ) ;
2773
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_schema_form_provider__ = __webpack_require__ ( 12 ) ;
2774
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_sf_error_message_provider__ = __webpack_require__ ( 14 ) ;
2775
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_sf_path_provider__ = __webpack_require__ ( 15 ) ;
2776
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_sf_changed_directive__ = __webpack_require__ ( 6 ) ;
2777
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_sf_field_directive__ = __webpack_require__ ( 7 ) ;
2778
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_sf_message_directive__ = __webpack_require__ ( 9 ) ;
2779
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_sf_array_directive__ = __webpack_require__ ( 5 ) ;
2780
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_sf_key_directive__ = __webpack_require__ ( 8 ) ;
2781
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_sf_schema_directive__ = __webpack_require__ ( 10 ) ;
2782
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_schema_validate_directive__ = __webpack_require__ ( 4 ) ;
2772
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_sf_builder_provider__ = __webpack_require__ ( 14 ) ;
2773
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_schema_form_decorators_provider__ = __webpack_require__ ( 12 ) ;
2774
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_schema_form_provider__ = __webpack_require__ ( 13 ) ;
2775
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_sf_error_message_provider__ = __webpack_require__ ( 15 ) ;
2776
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_sf_path_provider__ = __webpack_require__ ( 16 ) ;
2777
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_sf_changed_directive__ = __webpack_require__ ( 7 ) ;
2778
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_sf_field_directive__ = __webpack_require__ ( 8 ) ;
2779
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_sf_message_directive__ = __webpack_require__ ( 10 ) ;
2780
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_sf_array_directive__ = __webpack_require__ ( 6 ) ;
2781
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_sf_key_directive__ = __webpack_require__ ( 9 ) ;
2782
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_sf_schema_directive__ = __webpack_require__ ( 11 ) ;
2783
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_schema_validate_directive__ = __webpack_require__ ( 5 ) ;
2783
2784
2784
2785
2785
2786
@@ -2833,7 +2834,7 @@ __WEBPACK_IMPORTED_MODULE_1_angular___default.a.module('schemaForm', deps)
2833
2834
. directive ( 'sfChanged' , __WEBPACK_IMPORTED_MODULE_7_sf_changed_directive__ [ "a" /* default */ ] ) . directive ( 'sfField' , [ '$parse' , '$compile' , '$http' , '$templateCache' , '$interpolate' , '$q' , 'sfErrorMessage' , 'sfPath' , 'sfSelect' , __WEBPACK_IMPORTED_MODULE_8_sf_field_directive__ [ "a" /* default */ ] ] ) . directive ( 'sfMessage' , [ '$injector' , 'sfErrorMessage' , __WEBPACK_IMPORTED_MODULE_9_sf_message_directive__ [ "a" /* default */ ] ] ) . directive ( 'sfNewArray' , [ 'sfSelect' , 'sfPath' , 'schemaForm' , __WEBPACK_IMPORTED_MODULE_10_sf_array_directive__ [ "a" /* default */ ] ] ) . directive ( 'sfSchema' , [ '$compile' , '$http' , '$templateCache' , '$q' , 'schemaForm' , 'schemaFormDecorators' , 'sfSelect' , 'sfPath' , 'sfBuilder' , __WEBPACK_IMPORTED_MODULE_12_sf_schema_directive__ [ "a" /* default */ ] ] ) . directive ( 'schemaValidate' , [ 'sfValidator' , '$parse' , 'sfSelect' , __WEBPACK_IMPORTED_MODULE_13_schema_validate_directive__ [ "a" /* default */ ] ] ) . directive ( 'sfKeyController' , [ 'schemaForm' , 'sfPath' , __WEBPACK_IMPORTED_MODULE_11_sf_key_directive__ [ "a" /* default */ ] ] ) ;
2834
2835
2835
2836
/***/ } ) ,
2836
- /* 4 */
2837
+ /* 5 */
2837
2838
/***/ ( function ( module , __webpack_exports__ , __webpack_require__ ) {
2838
2839
2839
2840
"use strict" ;
@@ -3023,7 +3024,7 @@ __WEBPACK_IMPORTED_MODULE_1_angular___default.a.module('schemaForm', deps)
3023
3024
} ;
3024
3025
3025
3026
/***/ } ) ,
3026
- /* 5 */
3027
+ /* 6 */
3027
3028
/***/ ( function ( module , __webpack_exports__ , __webpack_require__ ) {
3028
3029
3029
3030
"use strict" ;
@@ -3267,7 +3268,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3267
3268
} ;
3268
3269
3269
3270
/***/ } ) ,
3270
- /* 6 */
3271
+ /* 7 */
3271
3272
/***/ ( function ( module , __webpack_exports__ , __webpack_require__ ) {
3272
3273
3273
3274
"use strict" ;
@@ -3313,7 +3314,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3313
3314
} ;
3314
3315
3315
3316
/***/ } ) ,
3316
- /* 7 */
3317
+ /* 8 */
3317
3318
/***/ ( function ( module , __webpack_exports__ , __webpack_require__ ) {
3318
3319
3319
3320
"use strict" ;
@@ -3601,7 +3602,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3601
3602
var arrayIndex = typeof scope . arrayIndex == 'number' ? scope . arrayIndex + 1 : 0 ;
3602
3603
3603
3604
// If the entire schema form is destroyed we don't touch the model
3604
- if ( ! scope . externalDestructionInProgress && ( ! scope . model . $$hashKey || scope . model . $$hashKey === scope . destroyed ) ) {
3605
+ if ( ! scope . externalDestructionInProgress ) {
3605
3606
var destroyStrategy = form . destroyStrategy || scope . options && scope . options . destroyStrategy || 'remove' ;
3606
3607
// No key no model, and we might have strategy 'retain'
3607
3608
if ( key && destroyStrategy !== 'retain' ) {
@@ -3612,6 +3613,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3612
3613
obj = sfSelect ( key . slice ( 0 , key . length - 1 ) , obj ) ;
3613
3614
}
3614
3615
3616
+ if ( obj && obj . $$hashKey && obj . $$hashKey !== scope . destroyed ) {
3617
+ return ;
3618
+ }
3619
+
3615
3620
// We can get undefined here if the form hasn't been filled out entirely
3616
3621
if ( obj === undefined ) {
3617
3622
return ;
@@ -3643,7 +3648,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3643
3648
} ;
3644
3649
3645
3650
/***/ } ) ,
3646
- /* 8 */
3651
+ /* 9 */
3647
3652
/***/ ( function ( module , __webpack_exports__ , __webpack_require__ ) {
3648
3653
3649
3654
"use strict" ;
@@ -3682,7 +3687,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3682
3687
} ; ;
3683
3688
3684
3689
/***/ } ) ,
3685
- /* 9 */
3690
+ /* 10 */
3686
3691
/***/ ( function ( module , __webpack_exports__ , __webpack_require__ ) {
3687
3692
3688
3693
"use strict" ;
@@ -3786,7 +3791,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3786
3791
} ;
3787
3792
3788
3793
/***/ } ) ,
3789
- /* 10 */
3794
+ /* 11 */
3790
3795
/***/ ( function ( module , __webpack_exports__ , __webpack_require__ ) {
3791
3796
3792
3797
"use strict" ;
@@ -4016,7 +4021,7 @@ FIXME: real documentation
4016
4021
} ;
4017
4022
4018
4023
/***/ } ) ,
4019
- /* 11 */
4024
+ /* 12 */
4020
4025
/***/ ( function ( module , __webpack_exports__ , __webpack_require__ ) {
4021
4026
4022
4027
"use strict" ;
@@ -4559,7 +4564,7 @@ FIXME: real documentation
4559
4564
} ; ;
4560
4565
4561
4566
/***/ } ) ,
4562
- /* 12 */
4567
+ /* 13 */
4563
4568
/***/ ( function ( module , __webpack_exports__ , __webpack_require__ ) {
4564
4569
4565
4570
"use strict" ;
@@ -4698,7 +4703,7 @@ FIXME: real documentation
4698
4703
} ;
4699
4704
4700
4705
/***/ } ) ,
4701
- /* 13 */
4706
+ /* 14 */
4702
4707
/***/ ( function ( module , __webpack_exports__ , __webpack_require__ ) {
4703
4708
4704
4709
"use strict" ;
@@ -5026,7 +5031,7 @@ FIXME: real documentation
5026
5031
} ;
5027
5032
5028
5033
/***/ } ) ,
5029
- /* 14 */
5034
+ /* 15 */
5030
5035
/***/ ( function ( module , __webpack_exports__ , __webpack_require__ ) {
5031
5036
5032
5037
"use strict" ;
@@ -5163,7 +5168,7 @@ FIXME: real documentation
5163
5168
} ;
5164
5169
5165
5170
/***/ } ) ,
5166
- /* 15 */
5171
+ /* 16 */
5167
5172
/***/ ( function ( module , __webpack_exports__ , __webpack_require__ ) {
5168
5173
5169
5174
"use strict" ;
@@ -5203,7 +5208,7 @@ var sfPathProviderClass = function () {
5203
5208
/* harmony default export */ __webpack_exports__ [ "a" ] = sfPathProviderClass ;
5204
5209
5205
5210
/***/ } ) ,
5206
- /* 16 */
5211
+ /* 17 */
5207
5212
/***/ ( function ( module , exports ) {
5208
5213
5209
5214
// shim for using process in browser
@@ -5389,7 +5394,7 @@ process.umask = function() { return 0; };
5389
5394
5390
5395
5391
5396
/***/ } ) ,
5392
- /* 17 */
5397
+ /* 18 */
5393
5398
/***/ ( function ( module , exports , __webpack_require__ ) {
5394
5399
5395
5400
/* WEBPACK VAR INJECTION */ ( function ( global , process ) { ( function ( global , undefined ) {
@@ -5579,10 +5584,10 @@ process.umask = function() { return 0; };
5579
5584
attachTo . clearImmediate = clearImmediate ;
5580
5585
} ( typeof self === "undefined" ? typeof global === "undefined" ? this : global : self ) ) ;
5581
5586
5582
- /* WEBPACK VAR INJECTION */ } . call ( exports , __webpack_require__ ( 2 ) , __webpack_require__ ( 16 ) ) )
5587
+ /* WEBPACK VAR INJECTION */ } . call ( exports , __webpack_require__ ( 2 ) , __webpack_require__ ( 17 ) ) )
5583
5588
5584
5589
/***/ } ) ,
5585
- /* 18 */
5590
+ /* 19 */
5586
5591
/***/ ( function ( module , exports , __webpack_require__ ) {
5587
5592
5588
5593
var apply = Function . prototype . apply ;
@@ -5635,17 +5640,18 @@ exports._unrefActive = exports.active = function(item) {
5635
5640
} ;
5636
5641
5637
5642
// setimmediate attaches itself to the global object
5638
- __webpack_require__ ( 17 ) ;
5643
+ __webpack_require__ ( 18 ) ;
5639
5644
exports . setImmediate = setImmediate ;
5640
5645
exports . clearImmediate = clearImmediate ;
5641
5646
5642
5647
5643
5648
/***/ } ) ,
5644
- /* 19 */
5649
+ /* 20 */ ,
5650
+ /* 21 */
5645
5651
/***/ ( function ( module , exports , __webpack_require__ ) {
5646
5652
5647
5653
__webpack_require__ ( 1 ) ;
5648
- module . exports = __webpack_require__ ( 3 ) ;
5654
+ module . exports = __webpack_require__ ( 4 ) ;
5649
5655
5650
5656
5651
5657
/***/ } )
0 commit comments