Commit graph

106 commits

Author SHA1 Message Date
ifandelse
5a74064466 Fixed bug with postal.configuration.SYSTEM_CHANNEL reference and added __postalReady__ array to help external tools like Chrome dev tools extension(s) to know when postal has been loaded... 2013-09-05 02:18:44 -04:00
ifandelse
a0da26205f Massive Whitespace Clean-up + adding jshintrc, etc. 2013-09-04 22:57:56 -04:00
Doug Neiner
6680cb497d Both defer and withDelay now properly pass the envelope along with the data for the callback. Fixes #41 2013-09-04 14:44:25 -05:00
ifandelse
25425c0cda Merged and tweaked PR from @GerHobbelt, which fixed issue with nested publishes breaking the unsubscribe queue behavior 2013-08-10 12:19:34 -04:00
ifandelse
d163f597dc Merge branch 'issue-36' of https://github.com/GerHobbelt/postal.js into GerHobbelt-issue-36 2013-08-08 22:19:42 -04:00
ifandelse
d936f7859d Updated getSubscribersFor method to work around bug in IE 8/9 2013-07-24 00:25:16 -04:00
Ger Hobbelt
38cf3c7c5f fix for #36: account for nested .publish() invocations and dequeue all queued .unsubscribe() calls which occurred during that time. 2013-06-14 23:16:37 +02:00
ifandelse
e909bbad08 Fixed bug reported by @tsgautier in Issue #34. The publish call was incorrectly handling a mutating array of subscribers as it iterated over them. I also fixed the once() call to return the instance. 2013-05-01 00:42:09 -04:00
Doug Neiner
f46f153982 Made the resolver more permissive. Fixed issue where topics starting with a / would never resolve. 2013-04-30 21:26:48 -05:00
Doug Neiner
dcddf5392e Updated defer to match withDelay for calling setTimeout. Fixes #28 2013-03-17 20:24:39 -05:00
Jim Cowart
3f1396cb35 Added regex instance caching to resolver 2013-03-03 00:25:48 -05:00
Jim Cowart
2097c638ab Updated bindings resolver to fix problem '#' not matching 0 words when nested inside topic string 2013-03-03 00:17:26 -05:00
Jim Cowart
a2db8ab2d7 Added tests for Bindings resolver to specifically target failing conditions. Now to fix those failures.... 2013-03-02 16:32:57 -05:00
Jim Cowart
51a244c210 Updated bug in Channel Definition publish, and fixed tests to catch it 2013-01-15 20:15:06 -05:00
Jim Cowart
f935902df7 Updated publish implementation to remove the need for cloning the array 2013-01-15 18:01:26 -05:00
Jim Cowart
180593a88b Updated publish loop to eliminate need for clone 2013-01-15 16:17:12 -05:00
Jim Cowart
b0461a54b4 Updated examples 2013-01-11 17:21:22 -05:00
Jim Cowart
fea0ddf952 Fixed potential bug in publishing from ChannelDefinition 2013-01-11 16:25:34 -05:00
Jim Cowart
fb4e9ae71a Trimmed more code out 2012-12-20 02:45:05 -05:00
Jim Cowart
3acbb142e6 Removed a *lot* of code. Postal's diet is in full force... 2012-12-20 02:32:45 -05:00
Jim Cowart
8530716096 initial v0.8.0RC changes' 2012-12-19 20:11:24 -05:00
Jim Cowart
68f833cdc4 Set 'this' context of constraints to match that of the callback. Added tests & removed jshint dependency temporarily 2012-11-16 20:29:11 -05:00
Jim Cowart
5c2727acfd added .once() shortcut to SubscriptionDefinition and related test 2012-11-07 21:30:51 -05:00
Lars Kappert
7ca226e143 Removed unused reference to "document"
The `document` global is not used in postal afaic. You could still access it through `global.window`.

I understand this is a browser version of postal, but it actually broke my r.js optimized build, since postal tries to access this global property on boot.
2012-10-12 00:41:43 +03:00
Jim Cowart
354a3187bd Fixed minor bug on node.js when publishing + no subscribers 2012-10-03 23:27:14 -04:00
Jim Cowart
314136cf4a Prepping for 0.7.2 tag 2012-09-25 21:23:06 -04:00
Jim Cowart
63ea8f866d Removed separate 'standard' and 'amd' client browser builds and combined them into one build with amd detection. 2012-09-25 20:48:36 -04:00
Elijah Manor
983cbf4e68 Added anvil.jshint to build.json and fixed mixed tabs/spaces in api.js 2012-09-24 09:01:31 -05:00
Alex Robson
9e3d410d05 Initial work towards a cleaner postal build 2012-09-19 01:51:05 -05:00
Jonathan Creamer
605be21c1a Add in a semicolon at the beginning of the standard lib 2012-09-13 16:18:26 -05:00
Jim Cowart
8eb3519c82 Updated build-all.sh, bumped version number to 0.7.1 2012-09-05 14:30:59 -04:00
Doug Neiner
0607980d0d Fixed issue with linkChannels that would prevent multiple output topics from publishing 2012-09-05 11:23:55 -05:00
Jim Cowart
83c0464429 Code updated to v 0.7.0, prepping to tag 2012-08-28 12:06:19 -04:00
Jim Cowart
4c0aea72b9 Renamed 'ignoreDuplicates' to 'distinctUntilChanged' to better track with @nicholascloud's contributions on 'distinct'. Bumped version to 0.6.4 2012-05-24 23:13:14 -04:00
Jim Cowart
bb4217f7fc Merged pull request #4 from @nicholascloud. Prepping for v0.6.4 bump 2012-05-24 23:03:15 -04:00
Jim Cowart
e305870bda Updated version to v0.6.3 2012-05-23 12:31:47 -04:00
Jim Cowart
2b44a9f020 Fixed bug where iterating over subscriptions gets thrown 'off by 1' when a handler unsubscribes as part of it's operation 2012-05-23 12:30:43 -04:00
Jim Cowart
14bae8c6c4 Fixing issue where unsubscribing during a publish operation breaks the iteration of subscription definitions in localBus. 2012-05-23 12:25:35 -04:00
Jim Cowart
b71738d696 Removed the diagnostics libs, since they are now in their own repo. Updated the README to reflect version number and also link to wiki 2012-05-23 01:08:55 -04:00
Jim Cowart
d3ad06218b Fixed bug with subscription priority 2012-05-22 14:35:36 -04:00
Jim Cowart
855afeee96 Updated formatting and build artifacts 2012-05-22 00:37:57 -04:00
Jim Cowart
15a5b11d48 Fixed bug where data-less publishes were breaking 2012-05-22 00:34:01 -04:00
Jim Cowart
3441008c1f Updated diagnostics wiretap with ability to use regex for testing matches 2012-04-26 09:42:53 -04:00
Jim Cowart
a77617e8f4 Updated README and removed session related calls from postal module for now 2012-04-23 22:59:31 -04:00
Jim Cowart
951738d56b Reformatted code to more closely (but not exactly) line up with jQuery core formatting standards. Updated postal.socket dependencies in the node example, etc. 2012-04-21 00:56:40 -04:00
Jim Cowart
e25d9196ec utils and configuration refactor 2012-04-20 01:53:46 -04:00
Jim Cowart
300115ce9a Added postal.utils namespace, added tests 2012-04-18 18:16:52 -04:00
Jim Cowart
30a3995f27 Adding working rough draft of node sample application 2012-04-18 01:05:32 -04:00
Jim Cowart
57410d175a Changed build process to produce separate amd and standard lib output for browser 2012-03-28 23:19:04 -04:00
Jim Cowart
e5d08bac53 Adding more tests 2012-03-27 10:50:59 -04:00