xooie 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -48,7 +48,7 @@ define('xooie/event_handler', ['jquery', 'xooie/helpers'], function ($, helpers)
48
48
 
49
49
  if (helpers.isUndefined(this.handlers[formattedType])) {
50
50
  this.handlers[formattedType] = function () {
51
- [].splice.call(arguments, 1, 0, this);
51
+ [].splice.call(arguments, 0, 0, this);
52
52
  self.fire.apply(self, arguments);
53
53
  };
54
54
  }
@@ -68,15 +68,17 @@ define('xooie/event_handler', ['jquery', 'xooie/helpers'], function ($, helpers)
68
68
  }
69
69
  };
70
70
 
71
- EventHandler.prototype.fire = function (event) {
71
+ EventHandler.prototype.fire = function (context, event) {
72
+ var args;
73
+
72
74
  if (event.namespace && event.namespace !== this.namespace) {
73
75
  return;
74
76
  }
75
77
 
76
- var args = [].slice.call(arguments, 1);
78
+ args = [].slice.call(arguments, 1);
77
79
 
78
80
  if (!helpers.isUndefined(this._callbacks[event.type])) {
79
- this._callbacks[event.type].fireWith.apply(this._callbacks[event.type].fireWith, args);
81
+ this._callbacks[event.type].fireWith(context, args);
80
82
  }
81
83
  };
82
84
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: xooie
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.7
5
+ version: 1.0.8
6
6
  platform: ruby
7
7
  authors:
8
8
  - Andrew Larkin
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2013-12-19 00:00:00 Z
13
+ date: 2014-01-03 00:00:00 Z
14
14
  dependencies: []
15
15
 
16
16
  description: A highly modular, extensible JavaScript UI framework.