This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Q.Promise constructor. | |
* Call the .fulfill(...) or .reject(...) method to | |
* signal that the promise is fulfilled or rejected. | |
* Implemented according to http://promises-aplus.github.io/promises-spec/ | |
* with two exceptions: | |
* 2.2.5) fulfill and reject can in fact accept "this", and pass it on | |
* 2.3.3.3.1) the first callback to .then() doesn't treat its arguments specially | |
*/ | |
Q.Promise = function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Q.Promise constructor. | |
* Call the .fulfill(...) or .reject(...) method to | |
* signal that the promise is fulfilled or rejected. | |
* Implemented according to http://promises-aplus.github.io/promises-spec/ | |
* with two exceptions: | |
* 2.2.5) fulfill and reject can in fact accept "this", and pass it on | |
* 2.3.3.3.1) the first callback to .then() doesn't treat its arguments specially | |
*/ | |
Q.Promise = function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is the most open letter ever. | |
Other authors claim their letters are "open" | |
because you can all read them, but in reality, | |
they are nothing but the rants of one person, | |
which you might not even completely agree with, | |
or will piss you off. | |
By contrast, this letter is truly open and | |
gives you the freedom to fork and modify it. | |
Pissed about Mike Arrington investing? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From a93d584bfd081e352e06ea094cb07d07e1e8c15c Mon Sep 17 00:00:00 2001 | |
From: Greg Magarshak <[email protected]> | |
Date: Wed, 18 Jun 2014 12:38:03 -0400 | |
Subject: [PATCH] Started working on the modern Streams/access tool | |
--- | |
.../plugins/Streams/classes/Streams/Avatar.php | 5 ++- | |
.../plugins/Streams/classes/Streams/Stream.php | 6 +-- | |
.../Streams/handlers/Streams/access/put.php | 6 +-- | |
.../Streams/handlers/Streams/access/tool.php | 45 ++++++++++++---------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r c3f7255b9205 platform/plugins/Streams/web/js/tools/access.js | |
--- a/platform/plugins/Streams/web/js/tools/access.js Wed Jun 18 12:38:37 2014 -0400 | |
+++ b/platform/plugins/Streams/web/js/tools/access.js Wed Jun 18 14:05:18 2014 -0400 | |
@@ -81,7 +81,7 @@ | |
} | |
$this.closest('tr').remove(); | |
if (criteria.ofUserId) { | |
- delete me.child('Streams_userChooser_').exclude[criteria.ofUserId]; | |
+ delete me.child('Streams_userChooser').exclude[criteria.ofUserId]; | |
} else if (criteria.ofContactLabel) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r c3f7255b9205 platform/plugins/Streams/web/js/tools/access.js | |
--- a/platform/plugins/Streams/web/js/tools/access.js Wed Jun 18 12:38:37 2014 -0400 | |
+++ b/platform/plugins/Streams/web/js/tools/access.js Wed Jun 18 14:05:18 2014 -0400 | |
@@ -81,7 +81,7 @@ | |
} | |
$this.closest('tr').remove(); | |
if (criteria.ofUserId) { | |
- delete me.child('Streams_userChooser_').exclude[criteria.ofUserId]; | |
+ delete me.child('Streams_userChooser').exclude[criteria.ofUserId]; | |
} else if (criteria.ofContactLabel) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function loadMoreStuff(callback, options) { | |
// standard options stuff | |
var o = Q.extend({ | |
max: -1, | |
limit: 10 | |
}, loadMoreStuff.options, options); | |
// use streams api | |
Q.Message.get(publisherId, streamName, o, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Normalizes text by converting it to lower case, and | |
* replacing all non-accepted characters with underscores. | |
* | |
* @static | |
* @method normalize | |
* @param {String} text | |
* The text to normalize | |
* @param {String} replacement | |
* Defaults to '_'. A string to replace one or more unacceptable characters. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Q Promises implementation | |
* @module Q | |
*/ | |
(function (Q) { | |
/** | |
* Q.Promise constructor. | |
* Call the .fulfill(...) or .reject(...) method to | |
* signal that the promise is fulfilled or rejected. |