isQuery() method on model_panel
authorDarren <darren@Darrens-MacBook-Pro.local>
Fri, 5 Apr 2013 20:49:31 +0000 (21:49 +0100)
committerDarren <darren@Darrens-MacBook-Pro.local>
Fri, 5 Apr 2013 20:49:31 +0000 (21:49 +0100)
client/assets/dev/model_panel.js

index 34ed74624a2c07538ba717d5e43a509f92b386ab..158052ecb5aa942b3e6ad6530a8d900237003124 100644 (file)
@@ -103,6 +103,14 @@ _kiwi.model.Panel = Backbone.Model.extend({
         return (channel_prefix.indexOf(this_name[0]) > -1);\r
     },\r
 \r
+    isQuery: function () {\r
+        if (!this.isChannel() && !this.isApplet() && !this.isServer()) {\r
+            return true;\r
+        }\r
+\r
+        return false;\r
+    },\r
+\r
     isApplet: function () {\r
         return this.applet ? true : false;\r
     },\r