Maxim Sokhatsky 11 лет назад
Родитель
Сommit
4e48f740e6

+ 1 - 1
apps/web/priv/static/app/js/chat.js

@@ -260,8 +260,8 @@ function initChat()
     document.getElementById("Clip-Path-Left-Chat").setAttribute("transform", "translate(0,0)");
 
     document.getElementById("Right-Bar").setAttribute("fill","lightblue");
-    document.getElementById("Left-Bar").setAttribute("fill","lightblue");
     document.getElementById("Right-Bar").setAttribute("xmlns:data","Right-Bar");
+    document.getElementById("Left-Bar").setAttribute("fill","lightblue");
     document.getElementById("Left-Bar").setAttribute("xmlns:data","Left-Bar");
 
     document.getElementById("Right-Bar").onmouseover = barHover;

+ 8 - 24
apps/web/priv/static/app/js/controller.js

@@ -8,34 +8,18 @@ function ControllerScope(scope) {
     var isIE = window.navigator.msPointerEnabled;
 
     $.extend(Controller.prototype, {
-        proxy: function(func) {
-            return func.bind(this);
-        },
+        proxy: function(func) { return func.bind(this); },
         proxyAll: function() {
             if (this.proxies) for (var method, i = this.proxies.length; i--; ) method = this.proxies[i], 
             this[method] = this.proxy(this[method]);
         },
-        withDelay: function(func, timeout) {
-            return setTimeout(this.proxy(func), timeout || 0);
-        },
-        $: function(selector) {
-            return this.$el.find(selector);
-        },
-        refreshElements: function() {
-            if (this.elements) for (var element in this.elements) this[element] = this.$(this.elements[element]);
-        },
-        on: function(eventType, handler) {
-            return this.$el.on(eventType, handler), this;
-        },
-        off: function(eventType, handler) {
-            return this.$el.off(eventType, handler), this;
-        },
-        clientX: function(e) {
-            return isIE ? e.pageX : document.createTouch ? e.changedTouches[0].clientX : e.clientX;
-        },
-        clientY: function(e) {
-            return isIE ? e.pageY : document.createTouch ? e.changedTouches[0].clientY : e.clientY;
-        },
+        withDelay: function(func, timeout) { return setTimeout(this.proxy(func), timeout || 0); },
+        $: function(selector) { return this.$el.find(selector); },
+        refreshElements: function() { if (this.elements) for (var element in this.elements) this[element] = this.$(this.elements[element]); },
+        on: function(eventType, handler) { return this.$el.on(eventType, handler), this; },
+        off: function(eventType, handler) { return this.$el.off(eventType, handler), this; },
+        clientX: function(e) { return isIE ? e.pageX : document.createTouch ? e.changedTouches[0].clientX : e.clientX; },
+        clientY: function(e) { return isIE ? e.pageY : document.createTouch ? e.changedTouches[0].clientY : e.clientY; },
         intersect: function(x, y) {
             var pos = this.$el.position();
             return pos.top < y && pos.bottom > y && pos.left < x && pos.right > x;

BIN
apps/web/priv/static/doc/Kakaranet-Scene.sketch/Data