kenny_dialoggins 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.7
1
+ 1.0.8
@@ -188,10 +188,13 @@ Object.extend(KennyDialoggins.Dialog.prototype, {
188
188
  _makeDialog: function() {
189
189
  if (!this._element) {
190
190
  this._element = new Element("DIV", { id: this._id });
191
- this._element.addClassName("kenny_dialoggins_dialog");
191
+
192
+ // Any user provided classes should be specified before KD's class, so
193
+ // the user can override default styling.
192
194
  if (this._class) {
193
195
  this._element.addClassName(this._class);
194
196
  }
197
+ this._element.addClassName("kenny_dialoggins_dialog");
195
198
  this._element.hide();
196
199
  document.body.appendChild(this._element);
197
200
  }
@@ -210,10 +213,10 @@ Object.extend(KennyDialoggins.Dialog.prototype, {
210
213
  _makeFrame: function() {
211
214
  if (!this._frame) {
212
215
  this._frame = new Element("IFRAME");
213
- this._frame.addClassName("kenny_dialoggins_dialog_frame");
214
216
  if (this._class) {
215
217
  this._element.addClassName(this._class);
216
218
  }
219
+ this._frame.addClassName("kenny_dialoggins_dialog_frame");
217
220
  this._frame.setAttribute("src", "about:blank");
218
221
  this._frame.hide();
219
222
  document.body.appendChild(this._frame);
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{kenny_dialoggins}
8
- s.version = "1.0.7"
8
+ s.version = "1.0.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Coroutine", "Tim Lowrimore", "John Dugan"]
@@ -188,10 +188,13 @@ Object.extend(KennyDialoggins.Dialog.prototype, {
188
188
  _makeDialog: function() {
189
189
  if (!this._element) {
190
190
  this._element = new Element("DIV", { id: this._id });
191
- this._element.addClassName("kenny_dialoggins_dialog");
191
+
192
+ // Any user provided classes should be specified before KD's class, so
193
+ // the user can override default styling.
192
194
  if (this._class) {
193
195
  this._element.addClassName(this._class);
194
196
  }
197
+ this._element.addClassName("kenny_dialoggins_dialog");
195
198
  this._element.hide();
196
199
  document.body.appendChild(this._element);
197
200
  }
@@ -210,10 +213,10 @@ Object.extend(KennyDialoggins.Dialog.prototype, {
210
213
  _makeFrame: function() {
211
214
  if (!this._frame) {
212
215
  this._frame = new Element("IFRAME");
213
- this._frame.addClassName("kenny_dialoggins_dialog_frame");
214
216
  if (this._class) {
215
217
  this._element.addClassName(this._class);
216
218
  }
219
+ this._frame.addClassName("kenny_dialoggins_dialog_frame");
217
220
  this._frame.setAttribute("src", "about:blank");
218
221
  this._frame.hide();
219
222
  document.body.appendChild(this._frame);
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kenny_dialoggins
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 7
10
- version: 1.0.7
9
+ - 8
10
+ version: 1.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Coroutine