Calvin Metcalf
4a0beebde3
Revert "' #1968 compiled interpolation'"
2013-11-20 15:42:06 -05:00
Vladimir Agafonkin
91c039b7aa
jshinting and major clean up of specs code, ref #2151
2013-11-07 23:54:33 +02:00
Vladimir Agafonkin
77bd10c69d
Merge pull request #2149 from danzel/ios7-2122
...
Work around iOS7 memory trouble
2013-11-04 13:33:54 -08:00
danzel
fa35aba1e9
Improve this test and fix removeEventListener.
2013-11-05 10:29:52 +13:00
danzel
579c044c00
Fix a potential event bug due to bad cleanup.
2013-11-05 10:21:32 +13:00
Vladimir Agafonkin
ec7baabccf
merge runner cleanup #2134
2013-11-04 13:18:24 +02:00
danzel
9fce697982
Work around iOS7 memory trouble by not applying the contextId performance optimization when context==this. The optimization does nothing in this case anyway. Fixes #2122
2013-11-04 09:47:55 +13:00
Jan Pieter Waagmeester
99bd248566
Whitespace OCD
2013-10-29 11:49:09 +01:00
Jan Pieter Waagmeester
a7f2d1975f
Allow double quotes in template strings fixes #2120
2013-10-23 15:14:59 +02:00
Vladimir Agafonkin
361c9cab6d
fix isArray not working IE9 in rare cases, close #2077
2013-10-08 16:59:42 +03:00
Vladimir Agafonkin
21d8bde0b7
fix tempate interpolation test and build
2013-08-27 22:06:01 +03:00
Calvin Metcalf
b2b25c8941
' #1968 compiled interpolation'
2013-08-27 13:03:07 -04:00
Vladimir Agafonkin
0849d06c1b
fix whitespace in event spec, #1661
2013-05-08 12:58:50 +03:00
R. Merkert
bbb7acb3f4
Make sure events don't fire after listener is removed.
...
This patch fixes a problem with a dangling event listener, which is
called even after it has been removed. This situation can occur when a
listener is removed during an even dispatch.
To fix this problem, the old action is replaced with a NOOP, so that
when the listener is being fired, it is not the old listener but the
NOOP.
2013-05-07 20:16:25 -04:00
Daan Mortier
c6620859e4
Updated patch for issue #1631 based on feedback
2013-04-29 13:03:05 +02:00
Daan Mortier
52498f1ef9
Issue #1631 : Fixed a bug on removeEventListener
...
Bugfix for issue #1631 where removeEventListener would throw when no event listeners are registered on the object.
2013-04-29 11:53:16 +02:00
Vladimir Agafonkin
5647f37ae6
cleanup and merge #1596 , adds Events#once
2013-04-19 17:23:45 +03:00
Vladimir Agafonkin
a5e8bc0f49
add Util.invokeEach for hash arguments in event methods
2013-04-19 17:23:14 +03:00
iirvine
84ad7db070
clearEventListeners -> clearAllListeners
2013-04-15 14:09:32 -07:00
iirvine
2d5bf783fe
initial commit of #clearEventListeners
2013-04-15 14:09:32 -07:00
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