| Index: web/inc/logdog-stream/logdog-stream.html
|
| diff --git a/web/inc/logdog-stream/logdog-stream.html b/web/inc/logdog-stream/logdog-stream.html
|
| index ec9ba5cebd0a5466929d8a09d2d942589db0bdd7..a0e56d0ca04aa438d5666ecd4e2cd2e3e7fc4dc8 100644
|
| --- a/web/inc/logdog-stream/logdog-stream.html
|
| +++ b/web/inc/logdog-stream/logdog-stream.html
|
| @@ -4,7 +4,7 @@
|
| that can be found in the LICENSE file.
|
| -->
|
|
|
| -<link rel="import" href="../bower_components/polymer/polymer.html">
|
| +<link rel="import" href="logdog-error.html">
|
|
|
| <script>
|
| /**
|
| @@ -97,6 +97,29 @@
|
| this.project = project;
|
| this.path = path;
|
| }
|
| + LogDogStream.prototype.fullName = function() {
|
| + return this.project + "/" + this.path;
|
| + };
|
| + LogDogStream.prototype.prefix = function() {
|
| + var sepIdx = this.path.indexOf("/+");
|
| + if (sepIdx > 0) {
|
| + return this.path.substring(0, sepIdx);
|
| + }
|
| + return this.path;
|
| + };
|
| + LogDogStream.prototype.name = function() {
|
| + var sep = "/+/";
|
| + var sepIdx = this.path.indexOf(sep);
|
| + if (sepIdx < 0) {
|
| + return undefined;
|
| + }
|
| + return this.path.substring(sepIdx + sep.length);
|
| + };
|
| + LogDogStream.prototype.samePrefixAs = function(other) {
|
| + return (
|
| + (this.project === other.project) &&
|
| + (this.prefix() === other.prefix()));
|
| + };
|
| LogDogStream.splitProject = function(v) {
|
| var parts = LogDogStream.split(v, 2);
|
| if (parts.length === 1) {
|
|
|