Commit Graph

84 Commits

Author SHA1 Message Date
iirvine
031086681f fix our context to the object that's registering this listener 2013-04-14 20:49:57 -07:00
iirvine
a469a387a1 back to first implementation to fix event leak 2013-04-13 22:11:01 -07:00
iirvine
e25f730b04 better implementation, more tests 2013-04-12 17:03:14 -07:00
iirvine
e41e8a886a initial implementation of events#once 2013-04-12 15:21:48 -07:00
John Firebaugh
81f21125d4 Update specs for mocha 2013-04-03 15:22:45 -07:00
Tom MacWright
a2f7d7e834 Use mocha 2013-04-03 14:50:09 -07:00
danzel
9d4d894450 Add another events test and fix from @iirvine 2013-03-15 13:53:03 +13:00
danzel
44cbed0b5e Replace the FeatureGroup test with a better one in events, this one currently fails 2013-03-13 10:08:04 +13:00
John Firebaugh
01332ebead Omit "should" in spec descriptions
The rationale is this: the spec string describes the expected
behavior unconditionally. The code examples, on the other hand,
set up an expectation that is tested with the call to the expect
method. The code examples can violate the expectation, but the
spec string does not. The value of the spec string is as clearly
as possible describing the behavior. Including “should” in that
description adds no value. (From http://rubyspec.org/style_guide/)
2013-02-19 12:41:48 -08:00
Tom MacWright
0a2000166a Fix semicolons, breaking, whitespace, duplicate var statements. 2013-02-19 11:18:15 -05:00
Tom MacWright
eae5758ff4 Split template tests into logic groups, test for template without
tokens.
2013-02-15 17:38:11 -05:00
Vladimir Agafonkin
ed8dc9f4cd improve core specs #1347 2013-02-04 18:31:14 +02:00
snkashis
6b4f5c4cf7 handling no existingUrl scenario 2012-12-27 14:39:19 -05:00
snkashis
3d416f38e1 whitespace for hash 2012-12-26 11:45:38 -05:00
Steve
3208db476c Semicolons in spec 2012-12-22 23:52:25 -05:00
snkashis
8c7c06431a handle existing query strings for WMS urls , #973 2012-12-22 17:47:38 -05:00
jacobtoye
c40878365d Fixing addInitHooks specs to test inherited hooks and child class' hooks. 2012-12-19 15:36:42 +13:00
Vladimir Agafonkin
782e8e7dcf implement hooks for Class constructors (AOP-style), close #1123 2012-12-12 12:26:33 +02:00
Vladimir Agafonkin
382ef5c0b2 spec cleanup 2012-07-05 12:54:40 +03:00
Aaron King
95ed9cdda2 Allow L.Mixin.Events.addEventListener() to accept a map in which the string keys represent one or more space-separated event types and the values represent a handler function to be called for the event(s).
Allow L.Mixin.Events.removeEventListener() to accept one or more space-separated event types. Omitting the fn parameter will remove all event handlers for the supplied event type(s).

Also allow L.Mixin.Events.removeEventListener() to accept a map where the string keys represent one or more space-separated event types and the values represent handler functions previously attached for the event(s).

Add unit tests for the above changes.
2012-06-29 16:14:41 -07:00
mourner
b333f86e1d fix superclass regression 2012-03-09 11:28:14 +02:00
Mourner
e9b8353198 more Class specs to test @anru changes 2011-07-12 15:32:40 +03:00
Mourner
ea4fd78b7c fix static properties inheritance 2011-06-21 12:09:49 +03:00
mourner
7cef8d3851 Events fire shortcut 2010-09-10 16:54:20 +03:00
mourner
a9677fca55 removed Options 2010-09-07 18:20:43 +03:00
mourner
42bcb9b3b3 DomUtil, DomEvent, namespace config improvements, some specs 2010-09-07 14:27:44 +03:00
mourner
4854e0f9f7 minor renaming 2010-09-06 19:14:04 +03:00
mourner
b50d878e5d minor spec fix 2010-09-06 18:38:14 +03:00
mourner
5b21def444 options merging 2010-09-06 18:26:20 +03:00
mourner
14bd27b088 Options, specs 2010-09-06 16:58:06 +03:00
mourner
0eb9cd8cc6 L.Util.stamp & specs 2010-09-06 16:17:06 +03:00
mourner
9d4e335fe0 improved Class spec 2010-09-03 19:27:26 +03:00
mourner
db5809b473 Events fixes, Events spec 2010-09-03 19:16:29 +03:00
mourner
341f6e726f added Events, folder renaming 2010-09-03 17:38:41 +03:00