1318 |
alexandre_ |
1 |
/*
|
|
|
2 |
Copyright (c) 2004-2006, The Dojo Foundation
|
|
|
3 |
All Rights Reserved.
|
|
|
4 |
|
|
|
5 |
Licensed under the Academic Free License version 2.1 or above OR the
|
|
|
6 |
modified BSD license. For more information on Dojo licensing, see:
|
|
|
7 |
|
|
|
8 |
http://dojotoolkit.org/community/licensing.shtml
|
|
|
9 |
*/
|
|
|
10 |
|
|
|
11 |
dojo.provide("dojo.data.old.provider.Delicious");
|
|
|
12 |
dojo.require("dojo.data.old.provider.FlatFile");
|
|
|
13 |
dojo.require("dojo.data.old.format.Json");
|
|
|
14 |
dojo.data.old.provider.Delicious = function () {
|
|
|
15 |
dojo.data.old.provider.FlatFile.call(this);
|
|
|
16 |
if (Delicious && Delicious.posts) {
|
|
|
17 |
dojo.data.old.format.Json.loadDataProviderFromArrayOfJsonData(this, Delicious.posts);
|
|
|
18 |
} else {
|
|
|
19 |
}
|
|
|
20 |
var u = this.registerAttribute("u");
|
|
|
21 |
var d = this.registerAttribute("d");
|
|
|
22 |
var t = this.registerAttribute("t");
|
|
|
23 |
u.load("name", "Bookmark");
|
|
|
24 |
d.load("name", "Description");
|
|
|
25 |
t.load("name", "Tags");
|
|
|
26 |
u.load("type", "String");
|
|
|
27 |
d.load("type", "String");
|
|
|
28 |
t.load("type", "String");
|
|
|
29 |
};
|
|
|
30 |
dojo.inherits(dojo.data.old.provider.Delicious, dojo.data.old.provider.FlatFile);
|
|
|
31 |
|