Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove default widget file.

  • Loading branch information...
commit 4dfc71bbb3ab6d91ed55ee8cbbfad1ebf2d13ce3 1 parent f29ea02
@beastaugh beastaugh authored
Showing with 0 additions and 33 deletions.
  1. +0 −33 widget.js
View
33 widget.js
@@ -1,33 +0,0 @@
-var Widget = new JS.Class({
- include: Ojay.Observable,
-
- initialize: function(element) {
- this._element = Ojay(element);
- },
-
- setup: function(url) {
- var self = this;
- var chain = new JS.MethodChain();
-
- Ojay.HTTP.GET(url, {}, function(response) {
- response.insertInto(self._element);
- var pager = new Ojay.Paginator(self._element, {
- rows: 3,
- columns: 4,
- direction: 'horizontal'
- }).setup();
-
- pager.addControls('after');
- self._pager = pager;
- chain.fire(self);
- });
- return chain;
- },
-
- setPage: function(n) {
- this._pager.setPage(n);
- this.notifyObservers('pagechange', n);
- return this;
- }
-});
-
Please sign in to comment.
Something went wrong with that request. Please try again.