| author | hamidouk |
| Fri, 21 Oct 2011 14:06:29 +0200 | |
| branch | popcorn-port |
| changeset 114 | eda061f1aa75 |
| parent 98 | ed4ac18baf07 |
| child 122 | 04bd1e2f9674 |
| permissions | -rw-r--r-- |
|
66
13013b9452af
Added a new file to the build, widgets.js, to contain widget classes.
hamidouk
parents:
diff
changeset
|
1 |
/* the widget classes and definitions */ |
|
13013b9452af
Added a new file to the build, widgets.js, to contain widget classes.
hamidouk
parents:
diff
changeset
|
2 |
|
| 74 | 3 |
IriSP.Widget = function(Popcorn, config, Serializer) { |
| 114 | 4 |
|
5 |
if (config === undefined || config === null) { |
|
6 |
config = {} |
|
7 |
} |
|
8 |
|
|
| 74 | 9 |
this._Popcorn = Popcorn; |
10 |
this._config = config; |
|
11 |
this._serializer = Serializer; |
|
| 114 | 12 |
|
13 |
if (config.hasOwnProperty("divId")) { |
|
14 |
this._id = config.divId; |
|
15 |
this.selector = IriSP.jQuery("#" + this._id); |
|
16 |
} |
|
|
66
13013b9452af
Added a new file to the build, widgets.js, to contain widget classes.
hamidouk
parents:
diff
changeset
|
17 |
}; |
|
13013b9452af
Added a new file to the build, widgets.js, to contain widget classes.
hamidouk
parents:
diff
changeset
|
18 |
|
|
13013b9452af
Added a new file to the build, widgets.js, to contain widget classes.
hamidouk
parents:
diff
changeset
|
19 |
IriSP.Widget.prototype.draw = function() { |
|
13013b9452af
Added a new file to the build, widgets.js, to contain widget classes.
hamidouk
parents:
diff
changeset
|
20 |
/* implemented by "sub-classes" */ |
|
13013b9452af
Added a new file to the build, widgets.js, to contain widget classes.
hamidouk
parents:
diff
changeset
|
21 |
}; |
| 74 | 22 |
|
23 |
IriSP.Widget.prototype.redraw = function() { |
|
24 |
/* implemented by "sub-classes" */ |
|
25 |
}; |