@breakside/jskit 2022.26.0 → 2022.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Frameworks/DOM.jsframework/Info.json +2 -2
- package/Frameworks/DOM.jsframework/io.breakside.JSKit.DOM-bundle.js +2 -2
- package/Frameworks/FontKit.jsframework/Info.json +2 -2
- package/Frameworks/FontKit.jsframework/io.breakside.JSKit.FontKit-bundle.js +2 -2
- package/Frameworks/Foundation.jsframework/Info.json +2 -2
- package/Frameworks/Foundation.jsframework/JS/JSFileManager+HTML.js +29 -19
- package/Frameworks/Foundation.jsframework/JS/JSUserDefaults.js +2 -2
- package/Frameworks/Foundation.jsframework/io.breakside.JSKit.Foundation-bundle.js +2 -2
- package/Frameworks/SecurityKit.jsframework/Info.json +2 -2
- package/Frameworks/SecurityKit.jsframework/io.breakside.JSKit.SecurityKit-bundle.js +2 -2
- package/Info.json +2 -2
- package/Node/io.breakside.jskit-bundle.js +2 -2
- package/Root/Frameworks/APIKit/Info.yaml +1 -1
- package/Root/Frameworks/APIKitTesting/Info.yaml +1 -1
- package/Root/Frameworks/AuthKit/Info.yaml +1 -1
- package/Root/Frameworks/AuthKit/OAService.js +8 -0
- package/Root/Frameworks/AuthKit/Services.yaml +2 -0
- package/Root/Frameworks/CSSOM/Info.yaml +1 -1
- package/Root/Frameworks/ChartKit/Info.yaml +1 -1
- package/Root/Frameworks/ConferenceKit/Info.yaml +1 -1
- package/Root/Frameworks/DBKit/Info.yaml +1 -1
- package/Root/Frameworks/DOM/Info.yaml +1 -1
- package/Root/Frameworks/Dispatch/Info.yaml +1 -1
- package/Root/Frameworks/FontKit/Info.yaml +1 -1
- package/Root/Frameworks/Foundation/Info.yaml +1 -1
- package/Root/Frameworks/Foundation/JSFileManager+HTML.js +29 -19
- package/Root/Frameworks/Foundation/JSUserDefaults.js +2 -2
- package/Root/Frameworks/ImageKit/Info.yaml +1 -1
- package/Root/Frameworks/MediaKit/Info.yaml +1 -1
- package/Root/Frameworks/MediaKitUI/Info.yaml +1 -1
- package/Root/Frameworks/NotificationKit/Info.yaml +1 -1
- package/Root/Frameworks/PDFKit/Info.yaml +1 -1
- package/Root/Frameworks/QRKit/Info.yaml +1 -1
- package/Root/Frameworks/SearchKit/Info.yaml +1 -1
- package/Root/Frameworks/SecurityKit/Info.yaml +1 -1
- package/Root/Frameworks/ServerKit/Info.yaml +1 -1
- package/Root/Frameworks/ServerKitTesting/Info.yaml +1 -1
- package/Root/Frameworks/TestKit/Info.yaml +1 -1
- package/Root/Frameworks/UIKit/Info.yaml +1 -1
- package/Root/Frameworks/UIKit/UIApplication.js +33 -15
- package/Root/Frameworks/UIKit/UICheckbox.js +15 -8
- package/Root/Frameworks/UIKit/UICollectionView.js +2 -2
- package/Root/Frameworks/UIKit/UIDisplayServer.js +51 -10
- package/Root/Frameworks/UIKit/UIKit.js +1 -0
- package/Root/Frameworks/UIKit/UILayer.js +3 -0
- package/Root/Frameworks/UIKit/UIListView.js +10 -6
- package/Root/Frameworks/UIKit/UIMenuView.js +77 -18
- package/Root/Frameworks/UIKit/UINavigationBar.js +45 -22
- package/Root/Frameworks/UIKit/UIScrollView.js +26 -6
- package/Root/Frameworks/UIKit/UIState.js +6 -4
- package/Root/Frameworks/UIKit/UITextField.js +8 -1
- package/Root/Frameworks/UIKit/UIView.js +11 -0
- package/Root/Frameworks/UIKitTesting/Info.yaml +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"JSBundleType": "framework",
|
|
3
3
|
"JSBundleIdentifier": "io.breakside.JSKit.DOM",
|
|
4
|
-
"JSBundleVersion": "2022.
|
|
4
|
+
"JSBundleVersion": "2022.29.0",
|
|
5
5
|
"JSDevelopmentLanguage": "en",
|
|
6
6
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
7
7
|
"JSBundleEnvironments": {
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
"node": "DOM+Node.js"
|
|
10
10
|
},
|
|
11
11
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
12
|
-
"GitRevision": "
|
|
12
|
+
"GitRevision": "706355b5640557cd87bd309e39fde15ded8dbe3c"
|
|
13
13
|
}
|
|
@@ -3,7 +3,7 @@ JSBundle.bundles['io.breakside.JSKit.DOM'] = {
|
|
|
3
3
|
"Info": {
|
|
4
4
|
"JSBundleType": "framework",
|
|
5
5
|
"JSBundleIdentifier": "io.breakside.JSKit.DOM",
|
|
6
|
-
"JSBundleVersion": "2022.
|
|
6
|
+
"JSBundleVersion": "2022.29.0",
|
|
7
7
|
"JSDevelopmentLanguage": "en",
|
|
8
8
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
9
9
|
"JSBundleEnvironments": {
|
|
@@ -11,7 +11,7 @@ JSBundle.bundles['io.breakside.JSKit.DOM'] = {
|
|
|
11
11
|
"node": "DOM+Node.js"
|
|
12
12
|
},
|
|
13
13
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
14
|
-
"GitRevision": "
|
|
14
|
+
"GitRevision": "706355b5640557cd87bd309e39fde15ded8dbe3c"
|
|
15
15
|
},
|
|
16
16
|
"Resources": [],
|
|
17
17
|
"ResourceLookup": {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"JSBundleType": "framework",
|
|
3
3
|
"JSBundleIdentifier": "io.breakside.JSKit.FontKit",
|
|
4
|
-
"JSBundleVersion": "2022.
|
|
4
|
+
"JSBundleVersion": "2022.29.0",
|
|
5
5
|
"JSDevelopmentLanguage": "en",
|
|
6
6
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
7
7
|
"JSBundleEnvironments": {
|
|
8
8
|
"html": "FontKit+HTML.js"
|
|
9
9
|
},
|
|
10
10
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
11
|
-
"GitRevision": "
|
|
11
|
+
"GitRevision": "706355b5640557cd87bd309e39fde15ded8dbe3c"
|
|
12
12
|
}
|
|
@@ -3,14 +3,14 @@ JSBundle.bundles['io.breakside.JSKit.FontKit'] = {
|
|
|
3
3
|
"Info": {
|
|
4
4
|
"JSBundleType": "framework",
|
|
5
5
|
"JSBundleIdentifier": "io.breakside.JSKit.FontKit",
|
|
6
|
-
"JSBundleVersion": "2022.
|
|
6
|
+
"JSBundleVersion": "2022.29.0",
|
|
7
7
|
"JSDevelopmentLanguage": "en",
|
|
8
8
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
9
9
|
"JSBundleEnvironments": {
|
|
10
10
|
"html": "FontKit+HTML.js"
|
|
11
11
|
},
|
|
12
12
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
13
|
-
"GitRevision": "
|
|
13
|
+
"GitRevision": "706355b5640557cd87bd309e39fde15ded8dbe3c"
|
|
14
14
|
},
|
|
15
15
|
"Resources": [],
|
|
16
16
|
"ResourceLookup": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"JSBundleType": "framework",
|
|
3
3
|
"JSBundleIdentifier": "io.breakside.JSKit.Foundation",
|
|
4
|
-
"JSBundleVersion": "2022.
|
|
4
|
+
"JSBundleVersion": "2022.29.0",
|
|
5
5
|
"JSDevelopmentLanguage": "en",
|
|
6
6
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
7
7
|
"JSBundleEnvironments": {
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
"node": "Foundation+Node.js"
|
|
10
10
|
},
|
|
11
11
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
12
|
-
"GitRevision": "
|
|
12
|
+
"GitRevision": "706355b5640557cd87bd309e39fde15ded8dbe3c"
|
|
13
13
|
}
|
|
@@ -551,16 +551,22 @@ JSClass("JSHTMLFileManager", JSFileManager, {
|
|
|
551
551
|
|
|
552
552
|
_copyDirectoryInTransactionAtURL: function(transaction, url, toURL, toParent, metadata){
|
|
553
553
|
this._copyMetadataInTransactionAtURL(transaction, url, toURL, toParent, metadata);
|
|
554
|
-
var index = transaction.metadata.index(JSFileManager.Indexes.
|
|
555
|
-
var
|
|
556
|
-
var
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
var
|
|
562
|
-
var
|
|
563
|
-
|
|
554
|
+
var index = transaction.metadata.index(JSFileManager.Indexes.metadataParent);
|
|
555
|
+
var lookup = url.path;
|
|
556
|
+
var request = index.getAll(lookup);
|
|
557
|
+
var manager = this;
|
|
558
|
+
request.onsuccess = function JSFileManager_removeDirectory_onsuccess(e){
|
|
559
|
+
var results = e.target.result;
|
|
560
|
+
if (results){
|
|
561
|
+
var child;
|
|
562
|
+
var childURL;
|
|
563
|
+
var childToURL;
|
|
564
|
+
for (var i = 0, l = results.length; i < l; ++i){
|
|
565
|
+
child = results[i];
|
|
566
|
+
childURL = url.appendingPathComponent(child.name, child.itemType == JSFileManager.ItemType.directory);
|
|
567
|
+
childToURL = toURL.appendingPathComponent(child.name, child.itemType == JSFileManager.ItemType.directory);
|
|
568
|
+
manager._copyItemInTransactionAtURL(transaction, childURL, childToURL, toURL, child);
|
|
569
|
+
}
|
|
564
570
|
}
|
|
565
571
|
};
|
|
566
572
|
},
|
|
@@ -639,16 +645,20 @@ JSClass("JSHTMLFileManager", JSFileManager, {
|
|
|
639
645
|
|
|
640
646
|
_removeDirectoryInTransactionAtURL: function(transaction, url, parent, metadata){
|
|
641
647
|
this._removeMetadataInTransactionAtURL(transaction, url, parent, metadata);
|
|
642
|
-
var index = transaction.metadata.index(JSFileManager.Indexes.
|
|
643
|
-
var
|
|
644
|
-
var
|
|
648
|
+
var index = transaction.metadata.index(JSFileManager.Indexes.metadataParent);
|
|
649
|
+
var lookup = url.path;
|
|
650
|
+
var request = index.getAll(lookup);
|
|
645
651
|
var manager = this;
|
|
646
|
-
|
|
647
|
-
var
|
|
648
|
-
if (
|
|
649
|
-
var child
|
|
650
|
-
var childURL
|
|
651
|
-
|
|
652
|
+
request.onsuccess = function JSFileManager_removeDirectory_onsuccess(e){
|
|
653
|
+
var results = e.target.result;
|
|
654
|
+
if (results){
|
|
655
|
+
var child;
|
|
656
|
+
var childURL;
|
|
657
|
+
for (var i = 0, l = results.length; i < l; ++i){
|
|
658
|
+
child = results[i];
|
|
659
|
+
childURL = url.appendingPathComponent(child.name, child.itemType == JSFileManager.ItemType.directory);
|
|
660
|
+
manager._removeItemInTransactionAtURL(transaction, childURL, url, child);
|
|
661
|
+
}
|
|
652
662
|
}
|
|
653
663
|
};
|
|
654
664
|
},
|
|
@@ -120,7 +120,9 @@ JSClass("JSUserDefaults", JSObject, {
|
|
|
120
120
|
if (this._values === null){
|
|
121
121
|
throw new Error("JSUserDefaults is closed, cannot set value. Be sure to call open() first.");
|
|
122
122
|
}
|
|
123
|
+
this.willChangeValueForKey(key);
|
|
123
124
|
this._values[key] = value;
|
|
125
|
+
this.didChangeValueForKey(key);
|
|
124
126
|
this._persistAfterDelay();
|
|
125
127
|
this._definePropertyForKey(key);
|
|
126
128
|
},
|
|
@@ -149,9 +151,7 @@ JSClass("JSUserDefaults", JSObject, {
|
|
|
149
151
|
return this.valueForKey(key);
|
|
150
152
|
},
|
|
151
153
|
set: function JSUserDefaults_setValue(value){
|
|
152
|
-
this.willChangeValueForKey(key);
|
|
153
154
|
this.setValueForKey(value, key);
|
|
154
|
-
this.didChangeValueForKey(key);
|
|
155
155
|
}
|
|
156
156
|
});
|
|
157
157
|
}
|
|
@@ -3,7 +3,7 @@ JSBundle.bundles['io.breakside.JSKit.Foundation'] = {
|
|
|
3
3
|
"Info": {
|
|
4
4
|
"JSBundleType": "framework",
|
|
5
5
|
"JSBundleIdentifier": "io.breakside.JSKit.Foundation",
|
|
6
|
-
"JSBundleVersion": "2022.
|
|
6
|
+
"JSBundleVersion": "2022.29.0",
|
|
7
7
|
"JSDevelopmentLanguage": "en",
|
|
8
8
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
9
9
|
"JSBundleEnvironments": {
|
|
@@ -11,7 +11,7 @@ JSBundle.bundles['io.breakside.JSKit.Foundation'] = {
|
|
|
11
11
|
"node": "Foundation+Node.js"
|
|
12
12
|
},
|
|
13
13
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
14
|
-
"GitRevision": "
|
|
14
|
+
"GitRevision": "706355b5640557cd87bd309e39fde15ded8dbe3c"
|
|
15
15
|
},
|
|
16
16
|
"Resources": [
|
|
17
17
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"JSBundleType": "framework",
|
|
3
3
|
"JSBundleIdentifier": "io.breakside.JSKit.SecurityKit",
|
|
4
|
-
"JSBundleVersion": "2022.
|
|
4
|
+
"JSBundleVersion": "2022.29.0",
|
|
5
5
|
"JSDevelopmentLanguage": "en",
|
|
6
6
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
7
7
|
"JSBundleEnvironments": {
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
"node": "SecurityKit+Node.js"
|
|
10
10
|
},
|
|
11
11
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
12
|
-
"GitRevision": "
|
|
12
|
+
"GitRevision": "706355b5640557cd87bd309e39fde15ded8dbe3c"
|
|
13
13
|
}
|
|
@@ -3,7 +3,7 @@ JSBundle.bundles['io.breakside.JSKit.SecurityKit'] = {
|
|
|
3
3
|
"Info": {
|
|
4
4
|
"JSBundleType": "framework",
|
|
5
5
|
"JSBundleIdentifier": "io.breakside.JSKit.SecurityKit",
|
|
6
|
-
"JSBundleVersion": "2022.
|
|
6
|
+
"JSBundleVersion": "2022.29.0",
|
|
7
7
|
"JSDevelopmentLanguage": "en",
|
|
8
8
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
9
9
|
"JSBundleEnvironments": {
|
|
@@ -11,7 +11,7 @@ JSBundle.bundles['io.breakside.JSKit.SecurityKit'] = {
|
|
|
11
11
|
"node": "SecurityKit+Node.js"
|
|
12
12
|
},
|
|
13
13
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
14
|
-
"GitRevision": "
|
|
14
|
+
"GitRevision": "706355b5640557cd87bd309e39fde15ded8dbe3c"
|
|
15
15
|
},
|
|
16
16
|
"Resources": [],
|
|
17
17
|
"ResourceLookup": {
|
package/Info.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"JSBundleType": "node",
|
|
3
3
|
"JSBundleIdentifier": "io.breakside.jskit",
|
|
4
|
-
"JSBundleVersion": "2022.
|
|
4
|
+
"JSBundleVersion": "2022.29.0",
|
|
5
5
|
"JSExecutableName": "jskit",
|
|
6
6
|
"NPMOrganization": "breakside",
|
|
7
7
|
"JSResources": [
|
|
8
8
|
"Tests/HTMLTestRunner.js",
|
|
9
9
|
"Tests/NodeTestRunner.js"
|
|
10
10
|
],
|
|
11
|
-
"GitRevision": "
|
|
11
|
+
"GitRevision": "706355b5640557cd87bd309e39fde15ded8dbe3c"
|
|
12
12
|
}
|
|
@@ -3,14 +3,14 @@ JSBundle.bundles['io.breakside.jskit'] = {
|
|
|
3
3
|
"Info": {
|
|
4
4
|
"JSBundleType": "node",
|
|
5
5
|
"JSBundleIdentifier": "io.breakside.jskit",
|
|
6
|
-
"JSBundleVersion": "2022.
|
|
6
|
+
"JSBundleVersion": "2022.29.0",
|
|
7
7
|
"JSExecutableName": "jskit",
|
|
8
8
|
"NPMOrganization": "breakside",
|
|
9
9
|
"JSResources": [
|
|
10
10
|
"Tests/HTMLTestRunner.js",
|
|
11
11
|
"Tests/NodeTestRunner.js"
|
|
12
12
|
],
|
|
13
|
-
"GitRevision": "
|
|
13
|
+
"GitRevision": "706355b5640557cd87bd309e39fde15ded8dbe3c"
|
|
14
14
|
},
|
|
15
15
|
"Resources": [
|
|
16
16
|
{
|
|
@@ -135,6 +135,14 @@ Object.defineProperties(OAService, {
|
|
|
135
135
|
return service;
|
|
136
136
|
}
|
|
137
137
|
},
|
|
138
|
+
facebook: {
|
|
139
|
+
configurable: true,
|
|
140
|
+
get: function(){
|
|
141
|
+
var service = OAService.initWithIdentifier('facebook');
|
|
142
|
+
Object.defineProperty(this, 'facebook', {value: service});
|
|
143
|
+
return service;
|
|
144
|
+
}
|
|
145
|
+
},
|
|
138
146
|
authPrivacy: {
|
|
139
147
|
configurable: true,
|
|
140
148
|
get: function(){
|
|
@@ -551,16 +551,22 @@ JSClass("JSHTMLFileManager", JSFileManager, {
|
|
|
551
551
|
|
|
552
552
|
_copyDirectoryInTransactionAtURL: function(transaction, url, toURL, toParent, metadata){
|
|
553
553
|
this._copyMetadataInTransactionAtURL(transaction, url, toURL, toParent, metadata);
|
|
554
|
-
var index = transaction.metadata.index(JSFileManager.Indexes.
|
|
555
|
-
var
|
|
556
|
-
var
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
var
|
|
562
|
-
var
|
|
563
|
-
|
|
554
|
+
var index = transaction.metadata.index(JSFileManager.Indexes.metadataParent);
|
|
555
|
+
var lookup = url.path;
|
|
556
|
+
var request = index.getAll(lookup);
|
|
557
|
+
var manager = this;
|
|
558
|
+
request.onsuccess = function JSFileManager_removeDirectory_onsuccess(e){
|
|
559
|
+
var results = e.target.result;
|
|
560
|
+
if (results){
|
|
561
|
+
var child;
|
|
562
|
+
var childURL;
|
|
563
|
+
var childToURL;
|
|
564
|
+
for (var i = 0, l = results.length; i < l; ++i){
|
|
565
|
+
child = results[i];
|
|
566
|
+
childURL = url.appendingPathComponent(child.name, child.itemType == JSFileManager.ItemType.directory);
|
|
567
|
+
childToURL = toURL.appendingPathComponent(child.name, child.itemType == JSFileManager.ItemType.directory);
|
|
568
|
+
manager._copyItemInTransactionAtURL(transaction, childURL, childToURL, toURL, child);
|
|
569
|
+
}
|
|
564
570
|
}
|
|
565
571
|
};
|
|
566
572
|
},
|
|
@@ -639,16 +645,20 @@ JSClass("JSHTMLFileManager", JSFileManager, {
|
|
|
639
645
|
|
|
640
646
|
_removeDirectoryInTransactionAtURL: function(transaction, url, parent, metadata){
|
|
641
647
|
this._removeMetadataInTransactionAtURL(transaction, url, parent, metadata);
|
|
642
|
-
var index = transaction.metadata.index(JSFileManager.Indexes.
|
|
643
|
-
var
|
|
644
|
-
var
|
|
648
|
+
var index = transaction.metadata.index(JSFileManager.Indexes.metadataParent);
|
|
649
|
+
var lookup = url.path;
|
|
650
|
+
var request = index.getAll(lookup);
|
|
645
651
|
var manager = this;
|
|
646
|
-
|
|
647
|
-
var
|
|
648
|
-
if (
|
|
649
|
-
var child
|
|
650
|
-
var childURL
|
|
651
|
-
|
|
652
|
+
request.onsuccess = function JSFileManager_removeDirectory_onsuccess(e){
|
|
653
|
+
var results = e.target.result;
|
|
654
|
+
if (results){
|
|
655
|
+
var child;
|
|
656
|
+
var childURL;
|
|
657
|
+
for (var i = 0, l = results.length; i < l; ++i){
|
|
658
|
+
child = results[i];
|
|
659
|
+
childURL = url.appendingPathComponent(child.name, child.itemType == JSFileManager.ItemType.directory);
|
|
660
|
+
manager._removeItemInTransactionAtURL(transaction, childURL, url, child);
|
|
661
|
+
}
|
|
652
662
|
}
|
|
653
663
|
};
|
|
654
664
|
},
|
|
@@ -120,7 +120,9 @@ JSClass("JSUserDefaults", JSObject, {
|
|
|
120
120
|
if (this._values === null){
|
|
121
121
|
throw new Error("JSUserDefaults is closed, cannot set value. Be sure to call open() first.");
|
|
122
122
|
}
|
|
123
|
+
this.willChangeValueForKey(key);
|
|
123
124
|
this._values[key] = value;
|
|
125
|
+
this.didChangeValueForKey(key);
|
|
124
126
|
this._persistAfterDelay();
|
|
125
127
|
this._definePropertyForKey(key);
|
|
126
128
|
},
|
|
@@ -149,9 +151,7 @@ JSClass("JSUserDefaults", JSObject, {
|
|
|
149
151
|
return this.valueForKey(key);
|
|
150
152
|
},
|
|
151
153
|
set: function JSUserDefaults_setValue(value){
|
|
152
|
-
this.willChangeValueForKey(key);
|
|
153
154
|
this.setValueForKey(value, key);
|
|
154
|
-
this.didChangeValueForKey(key);
|
|
155
155
|
}
|
|
156
156
|
});
|
|
157
157
|
}
|