ajax 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/public/javascripts/ajax.js +3 -3
  3. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.5
1
+ 1.0.6
@@ -383,7 +383,7 @@ var Ajax = function(options) {
383
383
  * [tab] jQuery selector, trigger the 'activate' event on the tab
384
384
  * [container] The container to receive the content, or <tt>main</tt> by default.
385
385
  * [assets] Assets to load
386
- * [callback] Execute a callback after assets have loaded
386
+ * [callbacks] Execute one or more callbacks after assets have loaded
387
387
  *
388
388
  * Cookies in the response are automatically set on the document.cookie.
389
389
  *
@@ -572,7 +572,7 @@ var Ajax = function(options) {
572
572
  // title - set page title
573
573
  // tab - activate a tab
574
574
  // assets - load assets
575
- // callback - execute a callback
575
+ // callbacks - execute one or an array of callbacks
576
576
  if (data.title !== undefined) {
577
577
  console.log('Using page title '+data.title);
578
578
  // commenting this out until we fix ' char bug, removing % chars from page titles for now
@@ -613,7 +613,7 @@ var Ajax = function(options) {
613
613
  */
614
614
  if (data.callbacks) {
615
615
  data.callbacks = jQuery.makeArray(data.callbacks);
616
- self.callbacks.concat(data.callbacks);
616
+ self.callbacks = self.callbacks.concat(data.callbacks);
617
617
  }
618
618
 
619
619
  /**
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ajax
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 5
10
- version: 1.0.5
9
+ - 6
10
+ version: 1.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Karl Varga
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-06 00:00:00 -08:00
18
+ date: 2011-03-08 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency