diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-14 15:39:19 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-14 15:39:19 +0000 |
commit | 1c5685d68f1b73270fb814fe04cbb490eb90ba5f (patch) | |
tree | 3d3ada08a934b96fc31531f1327690d7edc6f766 /includes/js/dojox/wire/ml/DataStore.js | |
parent | 104d59099e048688c4dbac37d72137006e396558 (diff) | |
download | semanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.gz semanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.bz2 |
Minor fix: Remove DOJO library (60Mo) replaced by link to Google CDN (online DOJO library)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@159 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'includes/js/dojox/wire/ml/DataStore.js')
-rw-r--r-- | includes/js/dojox/wire/ml/DataStore.js | 116 |
1 files changed, 0 insertions, 116 deletions
diff --git a/includes/js/dojox/wire/ml/DataStore.js b/includes/js/dojox/wire/ml/DataStore.js deleted file mode 100644 index e366d05..0000000 --- a/includes/js/dojox/wire/ml/DataStore.js +++ /dev/null @@ -1,116 +0,0 @@ -if(!dojo._hasResource["dojox.wire.ml.DataStore"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. -dojo._hasResource["dojox.wire.ml.DataStore"] = true; -dojo.provide("dojox.wire.ml.DataStore"); - -dojo.require("dijit._Widget"); -dojo.require("dojox.wire._base"); - -dojo.declare("dojox.wire.ml.DataStore", dijit._Widget, { - // summary: - // A widget for a data store - // description: - // This widget represents a data store of 'storeClass' attribute. - // storeClass: - // A class name of a data store - storeClass: "", - - postCreate: function(){ - // summary: - // Call _createStore() - // description: - // See _createStore(). - this.store = this._createStore(); - }, - - _createStore: function(){ - // summary: - // Create a data store - // desription: - // A data store of 'storeClass' is created with arguments - // specified with attributes. - // returns: - // A data store - if(!this.storeClass){ - return null; //null - } - var storeClass = dojox.wire._getClass(this.storeClass); - if(!storeClass){ - return null; //null - } - var args = {}; - var attributes = this.domNode.attributes; - for(var i = 0; i < attributes.length; i++){ - var a = attributes.item(i); - if(a.specified && !this[a.nodeName]){ - args[a.nodeName] = a.nodeValue; - } - } - return new storeClass(args); //Object - }, - - getFeatures: function(){ - // summary: - // Call getFeatures() method of a data store - // description: - // See dojo.data.api.Read.getFeatures(). - // returns: - // A features object - return this.store.getFeatures(); //Object - }, - - fetch: function(/*Object*/request){ - // summary: - // Call fetch() method of a data store - // description: - // See dojo.data.api.Read.fetch(). - // request: - // A request object - // returns: - // A request object - return this.store.fetch(request); //Object - }, - - save: function(/*Object*/args){ - // summary: - // Call save() method of a data store - // description: - // See dojo.data.api.Write.save(). - // args: - // A save arguments object - this.store.save(args); - }, - - newItem: function(/*Object*/args){ - // summary: - // Call newItem() method of a data store - // description: - // See dojo.data.api.Write.newItem(). - // args: - // A new item arguments object - // returns: - // A new item - return this.store.newItem(args); //Object - }, - - deleteItem: function(/*Object*/item){ - // summary: - // Call deleteItem() method of a data store - // description: - // See dojo.data.api.Write.deleteItem(). - // returns: - // A boolean - return this.store.deleteItem(item); //Boolean - }, - - revert: function(){ - // summary: - // Call revert() method of a data store - // description: - // See dojo.data.api.Write.revert(). - // returns: - // A boolean - return this.store.revert(); //Boolean - } -}); - -} |