Sha256: ddf8cbf8e5ba26be82d8679659e203f4205c01071b31e182860a21745eb5da89

Contents?: true

Size: 714 Bytes

Versions: 7

Compression:

Stored size: 714 Bytes

Contents

dojo.provide("dojox.data.demos.widgets.FlickrViewList");
dojo.require("dojox.dtl._Templated");
dojo.require("dijit._Widget");

dojo.declare("dojox.data.demos.widgets.FlickrViewList", 
	[ dijit._Widget, dojox.dtl._Templated ],
	{
		store: null,
		items: null,

		templatePath: dojo.moduleUrl("dojox", "data/demos/widgets/templates/FlickrViewList.html"),
	
		fetch: function(request){
			request.onComplete = dojo.hitch(this, "onComplete");
			request.onError = dojo.hitch(this, "onError");
			return this.store.fetch(request);
		},

		onError: function(){
			console.trace();
			this.items = [];
			this.render();
		},

		onComplete: function(items, request){
			this.items = items||[];
			this.render();
		}
	}
);

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dojo-pkg-1.132.0 data/dojo-release-1.3.2-src/dojox/data/demos/widgets/FlickrViewList.js
dojo-pkg-1.120.0 data/dojo-release-1.2.0-src/dojox/data/demos/widgets/FlickrViewList.js
dojo-pkg-1.121.0 data/dojo-release-1.2.1-src/dojox/data/demos/widgets/FlickrViewList.js
dojo-pkg-1.122.0 data/dojo-release-1.2.2-src/dojox/data/demos/widgets/FlickrViewList.js
dojo-pkg-1.123.0 data/dojo-release-1.2.3-src/dojox/data/demos/widgets/FlickrViewList.js
dojo-pkg-1.130.0 data/dojo-release-1.3.0-src/dojox/data/demos/widgets/FlickrViewList.js
dojo-pkg-1.131.0 data/dojo-release-1.3.1-src/dojox/data/demos/widgets/FlickrViewList.js