{"action":"created","comment":{"url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/pulls/comments/45760052","id":45760052,"diff_hunk":"@@ -1,574 +1,663 @@\n angular.module('colorpicker.module', [])\n-    .factory('Helper', function () {\n-      'use strict';\n-      return {\n-        closestSlider: function (elem) {\n-          var matchesSelector = elem.matches || elem.webkitMatchesSelector || elem.mozMatchesSelector || elem.msMatchesSelector;\n-          if (matchesSelector.bind(elem)('I')) {\n-            return elem.parentNode;\n-          }\n-          return elem;\n-        },\n-        getOffset: function (elem, fixedPosition) {\n-          var\n-              x = 0,\n-              y = 0,\n-              scrollX = 0,\n-              scrollY = 0;\n-          while (elem && !isNaN(elem.offsetLeft) && !isNaN(elem.offsetTop)) {\n-            x += elem.offsetLeft;\n-            y += elem.offsetTop;\n-            if (!fixedPosition && elem.tagName === 'BODY') {\n-              scrollX += document.documentElement.scrollLeft || elem.scrollLeft;\n-              scrollY += document.documentElement.scrollTop || elem.scrollTop;\n-            } else {\n-              scrollX += elem.scrollLeft;\n-              scrollY += elem.scrollTop;\n-            }\n-            elem = elem.offsetParent;\n-          }\n-          return {\n-            top: y,\n-            left: x,\n-            scrollX: scrollX,\n-            scrollY: scrollY\n-          };\n-        },\n-        // a set of RE's that can match strings and generate color tuples. https://github.com/jquery/jquery-color/\n-        stringParsers: [\n-          {\n-            re: /rgba?\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*(?:,\\s*(\\d+(?:\\.\\d+)?)\\s*)?\\)/,\n-            parse: function (execResult) {\n-              return [\n-                execResult[1],\n-                execResult[2],\n-                execResult[3],\n-                execResult[4]\n-              ];\n-            }\n-          },\n-          {\n-            re: /rgba?\\(\\s*(\\d+(?:\\.\\d+)?)\\%\\s*,\\s*(\\d+(?:\\.\\d+)?)\\%\\s*,\\s*(\\d+(?:\\.\\d+)?)\\%\\s*(?:,\\s*(\\d+(?:\\.\\d+)?)\\s*)?\\)/,\n-            parse: function (execResult) {\n-              return [\n-                2.55 * execResult[1],\n-                2.55 * execResult[2],\n-                2.55 * execResult[3],\n-                execResult[4]\n-              ];\n-            }\n-          },\n-          {\n-            re: /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,\n-            parse: function (execResult) {\n-              return [\n-                parseInt(execResult[1], 16),\n-                parseInt(execResult[2], 16),\n-                parseInt(execResult[3], 16)\n-              ];\n-            }\n-          },\n-          {\n-            re: /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/,\n-            parse: function (execResult) {\n-              return [\n-                parseInt(execResult[1] + execResult[1], 16),\n-                parseInt(execResult[2] + execResult[2], 16),\n-                parseInt(execResult[3] + execResult[3], 16)\n-              ];\n-            }\n-          }\n-        ]\n-      };\n+    .factory('Helper', function() {\n+        'use strict';\n+        return {\n+            closestSlider: function(elem) {\n+                var matchesSelector = elem.matches || elem.webkitMatchesSelector || elem.mozMatchesSelector || elem.msMatchesSelector;\n+                if (matchesSelector.bind(elem)('I')) {\n+                    return elem.parentNode;\n+                }\n+                return elem;\n+            },\n+            getOffset: function(elem, fixedPosition) {\n+                var\n+                    x = 0,\n+                    y = 0,\n+                    scrollX = 0,\n+                    scrollY = 0;\n+\n+                while (elem && !isNaN(elem.offsetLeft) && !isNaN(elem.offsetTop)) {\n+                    x += elem.offsetLeft;\n+                    y += elem.offsetTop;\n+                    if (!fixedPosition && elem.tagName === 'BODY') {\n+                        scrollX += document.documentElement.scrollLeft || elem.scrollLeft;\n+                        scrollY += document.documentElement.scrollTop || elem.scrollTop;\n+                    } else {\n+                        scrollX += elem.scrollLeft;\n+                        scrollY += elem.scrollTop;\n+                    }\n+                    elem = elem.offsetParent;\n+                }\n+                return {\n+                    top: y,\n+                    left: x,\n+                    scrollX: scrollX,\n+                    scrollY: scrollY\n+                };\n+            },\n+            // a set of RE's that can match strings and generate color tuples. https://github.com/jquery/jquery-color/\n+            stringParsers: [{\n+                re: /rgba?\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*(?:,\\s*(\\d+(?:\\.\\d+)?)\\s*)?\\)/,\n+                parse: function(execResult) {\n+                    return [\n+                        execResult[1],\n+                        execResult[2],\n+                        execResult[3],\n+                        execResult[4]\n+                    ];\n+                }\n+            }, {\n+                re: /rgba?\\(\\s*(\\d+(?:\\.\\d+)?)\\%\\s*,\\s*(\\d+(?:\\.\\d+)?)\\%\\s*,\\s*(\\d+(?:\\.\\d+)?)\\%\\s*(?:,\\s*(\\d+(?:\\.\\d+)?)\\s*)?\\)/,\n+                parse: function(execResult) {\n+                    return [\n+                        2.55 * execResult[1],\n+                        2.55 * execResult[2],\n+                        2.55 * execResult[3],\n+                        execResult[4]\n+                    ];\n+                }\n+            }, {\n+                re: /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,\n+                parse: function(execResult) {\n+                    return [\n+                        parseInt(execResult[1], 16),\n+                        parseInt(execResult[2], 16),\n+                        parseInt(execResult[3], 16)\n+                    ];\n+                }\n+            }, {\n+                re: /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/,\n+                parse: function(execResult) {\n+                    return [\n+                        parseInt(execResult[1] + execResult[1], 16),\n+                        parseInt(execResult[2] + execResult[2], 16),\n+                        parseInt(execResult[3] + execResult[3], 16)\n+                    ];\n+                }\n+            }]\n+        };\n     })\n-    .factory('Color', ['Helper', function (Helper) {\n-      'use strict';\n-      return {\n-        value: {\n-          h: 1,\n-          s: 1,\n-          b: 1,\n-          a: 1\n-        },\n-        // translate a format from Color object to a string\n-        'rgb': function () {\n-          var rgb = this.toRGB();\n-          return 'rgb(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ')';\n-        },\n-        'rgba': function () {\n-          var rgb = this.toRGB();\n-          return 'rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ',' + rgb.a + ')';\n-        },\n-        'hex': function () {\n-          return  this.toHex();\n-        },\n-\n-        // HSBtoRGB from RaphaelJS\n-        RGBtoHSB: function (r, g, b, a) {\n-          r /= 255;\n-          g /= 255;\n-          b /= 255;\n-\n-          var H, S, V, C;\n-          V = Math.max(r, g, b);\n-          C = V - Math.min(r, g, b);\n-          H = (C === 0 ? null :\n-              V === r ? (g - b) / C :\n-                  V === g ? (b - r) / C + 2 :\n-                      (r - g) / C + 4\n-              );\n-          H = ((H + 360) % 6) * 60 / 360;\n-          S = C === 0 ? 0 : C / V;\n-          return {h: H || 1, s: S, b: V, a: a || 1};\n-        },\n-\n-        //parse a string to HSB\n-        setColor: function (val) {\n-          val = val.toLowerCase();\n-          for (var key in Helper.stringParsers) {\n-            if (Helper.stringParsers.hasOwnProperty(key)) {\n-              var parser = Helper.stringParsers[key];\n-              var match = parser.re.exec(val),\n-                  values = match && parser.parse(match);\n-              if (values) {\n-                this.value = this.RGBtoHSB.apply(null, values);\n-                return false;\n-              }\n+    .factory('Color', ['Helper', function(Helper) {\n+        'use strict';\n+        return {\n+            value: {\n+                h: 1,\n+                s: 1,\n+                b: 1,\n+                a: 1\n+            },\n+            // translate a format from Color object to a string\n+            'rgb': function() {\n+                var rgb = this.toRGB();\n+                return 'rgb(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ')';\n+            },\n+            'rgba': function() {\n+                var rgb = this.toRGB();\n+                return 'rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ',' + rgb.a + ')';\n+            },\n+            'hex': function() {\n+                return this.toHex();\n+            },\n+\n+            // HSBtoRGB from RaphaelJS\n+            RGBtoHSB: function(r, g, b, a) {\n+                r /= 255;\n+                g /= 255;\n+                b /= 255;\n+\n+                var H, S, V, C;\n+                V = Math.max(r, g, b);\n+                C = V - Math.min(r, g, b);\n+                H = (C === 0 ? null :\n+                    V === r ? (g - b) / C :\n+                    V === g ? (b - r) / C + 2 :\n+                    (r - g) / C + 4\n+                );\n+                H = ((H + 360) % 6) * 60 / 360;\n+                S = C === 0 ? 0 : C / V;\n+                return {\n+                    h: H || 1,\n+                    s: S,\n+                    b: V,\n+                    a: a || 1\n+                };\n+            },\n+\n+            //parse a string to HSB\n+            setColor: function(val) {\n+                val = val.toLowerCase();\n+                for (var key in Helper.stringParsers) {\n+                    if (Helper.stringParsers.hasOwnProperty(key)) {\n+                        var parser = Helper.stringParsers[key];\n+                        var match = parser.re.exec(val),\n+                            values = match && parser.parse(match);\n+                        if (values) {\n+                            this.value = this.RGBtoHSB.apply(null, values);\n+                            return false;\n+                        }\n+                    }\n+                }\n+            },\n+\n+            setHue: function(h) {\n+                this.value.h = 1 - h;\n+            },\n+\n+            setSaturation: function(s) {\n+                this.value.s = s;\n+            },\n+\n+            setLightness: function(b) {\n+                this.value.b = 1 - b;\n+            },\n+\n+            setAlpha: function(a) {\n+                this.value.a = parseInt((1 - a) * 100, 10) / 100;\n+            },\n+\n+            // HSBtoRGB from RaphaelJS\n+            // https://github.com/DmitryBaranovskiy/raphael/\n+            toRGB: function(h, s, b, a) {\n+                if (!h) {\n+                    h = this.value.h;\n+                    s = this.value.s;\n+                    b = this.value.b;\n+                }\n+                h *= 360;\n+                var R, G, B, X, C;\n+                h = (h % 360) / 60;\n+                C = b * s;\n+                X = C * (1 - Math.abs(h % 2 - 1));\n+                R = G = B = b - C;\n+\n+                h = ~~h;\n+                R += [C, X, 0, 0, X, C][h];\n+                G += [X, C, C, X, 0, 0][h];\n+                B += [0, 0, X, C, C, X][h];\n+                return {\n+                    r: Math.round(R * 255),\n+                    g: Math.round(G * 255),\n+                    b: Math.round(B * 255),\n+                    a: a || this.value.a\n+                };\n+            },\n+\n+            toHex: function(h, s, b, a) {\n+                var rgb = this.toRGB(h, s, b, a);\n+                return '#' + ((1 << 24) | (parseInt(rgb.r, 10) << 16) | (parseInt(rgb.g, 10) << 8) | parseInt(rgb.b, 10)).toString(16).substr(1);\n             }\n-          }\n-        },\n-\n-        setHue: function (h) {\n-          this.value.h = 1 - h;\n-        },\n-\n-        setSaturation: function (s) {\n-          this.value.s = s;\n-        },\n-\n-        setLightness: function (b) {\n-          this.value.b = 1 - b;\n-        },\n-\n-        setAlpha: function (a) {\n-          this.value.a = parseInt((1 - a) * 100, 10) / 100;\n-        },\n-\n-        // HSBtoRGB from RaphaelJS\n-        // https://github.com/DmitryBaranovskiy/raphael/\n-        toRGB: function (h, s, b, a) {\n-          if (!h) {\n-            h = this.value.h;\n-            s = this.value.s;\n-            b = this.value.b;\n-          }\n-          h *= 360;\n-          var R, G, B, X, C;\n-          h = (h % 360) / 60;\n-          C = b * s;\n-          X = C * (1 - Math.abs(h % 2 - 1));\n-          R = G = B = b - C;\n-\n-          h = ~~h;\n-          R += [C, X, 0, 0, X, C][h];\n-          G += [X, C, C, X, 0, 0][h];\n-          B += [0, 0, X, C, C, X][h];\n-          return {\n-            r: Math.round(R * 255),\n-            g: Math.round(G * 255),\n-            b: Math.round(B * 255),\n-            a: a || this.value.a\n-          };\n-        },\n-\n-        toHex: function (h, s, b, a) {\n-          var rgb = this.toRGB(h, s, b, a);\n-          return '#' + ((1 << 24) | (parseInt(rgb.r, 10) << 16) | (parseInt(rgb.g, 10) << 8) | parseInt(rgb.b, 10)).toString(16).substr(1);\n-        }\n-      };\n+        };\n     }])\n-    .factory('Slider', ['Helper', function (Helper) {\n-      'use strict';\n-      var\n-          slider = {\n-            maxLeft: 0,\n-            maxTop: 0,\n-            callLeft: null,\n-            callTop: null,\n-            knob: {\n-              top: 0,\n-              left: 0\n+    .factory('Slider', ['Helper', function(Helper) {\n+        'use strict';\n+        var\n+            slider = {\n+                maxLeft: 0,\n+                maxTop: 0,\n+                callLeft: null,\n+                callTop: null,\n+                knob: {\n+                    top: 0,\n+                    left: 0\n+                }\n+            },\n+            pointer = {};\n+\n+        return {\n+            getSlider: function() {\n+                return slider;\n+            },\n+            getLeftPosition: function(event) {\n+                return Math.max(0, Math.min(slider.maxLeft, slider.left + ((event.pageX || pointer.left) - pointer.left)));\n+            },\n+            getTopPosition: function(event) {\n+                return Math.max(0, Math.min(slider.maxTop, slider.top + ((event.pageY || pointer.top) - pointer.top)));\n+            },\n+            setSlider: function(event, fixedPosition) {\n+                var\n+                    target = Helper.closestSlider(event.target),\n+                    targetOffset = Helper.getOffset(target, fixedPosition),\n+                    rect = target.getBoundingClientRect(),\n+                    offsetX = event.clientX - rect.left,\n+                    offsetY = event.clientY - rect.top;\n+\n+                slider.knob = target.children[0].style;\n+                slider.left = event.pageX - targetOffset.left - window.pageXOffset + targetOffset.scrollX;\n+                slider.top = event.pageY - targetOffset.top - window.pageYOffset + targetOffset.scrollY;\n+\n+                pointer = {\n+                    left: event.pageX - (offsetX - slider.left),\n+                    top: event.pageY - (offsetY - slider.top)\n+                };\n+            },\n+            setSaturation: function(event, fixedPosition) {\n+                slider = {\n+                    maxLeft: 100,\n+                    maxTop: 100,\n+                    callLeft: 'setSaturation',\n+                    callTop: 'setLightness'\n+                };\n+                this.setSlider(event, fixedPosition);\n+            },\n+            setHue: function(event, fixedPosition) {\n+                slider = {\n+                    maxLeft: 0,\n+                    maxTop: 100,\n+                    callLeft: false,\n+                    callTop: 'setHue'\n+                };\n+                this.setSlider(event, fixedPosition);\n+            },\n+            setAlpha: function(event, fixedPosition) {\n+                slider = {\n+                    maxLeft: 0,\n+                    maxTop: 100,\n+                    callLeft: false,\n+                    callTop: 'setAlpha'\n+                };\n+                this.setSlider(event, fixedPosition);\n+            },\n+            setKnob: function(top, left) {\n+                slider.knob.top = top + 'px';\n+                slider.knob.left = left + 'px';\n             }\n-          },\n-          pointer = {};\n-\n-      return {\n-        getSlider: function() {\n-          return slider;\n-        },\n-        getLeftPosition: function(event) {\n-          return Math.max(0, Math.min(slider.maxLeft, slider.left + ((event.pageX || pointer.left) - pointer.left)));\n-        },\n-        getTopPosition: function(event) {\n-          return Math.max(0, Math.min(slider.maxTop, slider.top + ((event.pageY || pointer.top) - pointer.top)));\n-        },\n-        setSlider: function (event, fixedPosition) {\n-          var\n-            target = Helper.closestSlider(event.target),\n-            targetOffset = Helper.getOffset(target, fixedPosition),\n-            rect = target.getBoundingClientRect(),\n-            offsetX = event.clientX - rect.left,\n-            offsetY = event.clientY - rect.top;\n-\n-          slider.knob = target.children[0].style;\n-          slider.left = event.pageX - targetOffset.left - window.pageXOffset + targetOffset.scrollX;\n-          slider.top = event.pageY - targetOffset.top - window.pageYOffset + targetOffset.scrollY;\n-\n-          pointer = {\n-            left: event.pageX - (offsetX - slider.left),\n-            top: event.pageY - (offsetY - slider.top)\n-          };\n-        },\n-        setSaturation: function(event, fixedPosition) {\n-          slider = {\n-            maxLeft: 100,\n-            maxTop: 100,\n-            callLeft: 'setSaturation',\n-            callTop: 'setLightness'\n-          };\n-          this.setSlider(event, fixedPosition);\n-        },\n-        setHue: function(event, fixedPosition) {\n-          slider = {\n-            maxLeft: 0,\n-            maxTop: 100,\n-            callLeft: false,\n-            callTop: 'setHue'\n-          };\n-          this.setSlider(event, fixedPosition);\n-        },\n-        setAlpha: function(event, fixedPosition) {\n-          slider = {\n-            maxLeft: 0,\n-            maxTop: 100,\n-            callLeft: false,\n-            callTop: 'setAlpha'\n-          };\n-          this.setSlider(event, fixedPosition);\n-        },\n-        setKnob: function(top, left) {\n-          slider.knob.top = top + 'px';\n-          slider.knob.left = left + 'px';\n-        }\n-      };\n+        };\n     }])\n-    .directive('colorpicker', ['$document', '$compile', 'Color', 'Slider', 'Helper', function ($document, $compile, Color, Slider, Helper) {\n-      'use strict';\n-      return {\n-        require: '?ngModel',\n-        restrict: 'A',\n-        link: function ($scope, elem, attrs, ngModel) {\n-          var\n-              thisFormat = attrs.colorpicker ? attrs.colorpicker : 'hex',\n-              position = angular.isDefined(attrs.colorpickerPosition) ? attrs.colorpickerPosition : 'bottom',\n-              inline = angular.isDefined(attrs.colorpickerInline) ? attrs.colorpickerInline : false,\n-              fixedPosition = angular.isDefined(attrs.colorpickerFixedPosition) ? attrs.colorpickerFixedPosition : false,\n-              target = angular.isDefined(attrs.colorpickerParent) ? elem.parent() : angular.element(document.body),\n-              withInput = angular.isDefined(attrs.colorpickerWithInput) ? attrs.colorpickerWithInput : false,\n-              inputTemplate = withInput ? '<input type=\"text\" name=\"colorpicker-input\">' : '',\n-              closeButton = !inline ? '<button type=\"button\" class=\"close close-colorpicker\">&times;</button>' : '',\n-              template =\n-                  '<div class=\"colorpicker dropdown\">' +\n-                      '<div class=\"dropdown-menu\">' +\n-                      '<colorpicker-saturation><i></i></colorpicker-saturation>' +\n-                      '<colorpicker-hue><i></i></colorpicker-hue>' +\n-                      '<colorpicker-alpha><i></i></colorpicker-alpha>' +\n-                      '<colorpicker-preview></colorpicker-preview>' +\n-                      inputTemplate +\n-                      closeButton +\n-                      '</div>' +\n-                      '</div>',\n-              colorpickerTemplate = angular.element(template),\n-              pickerColor = Color,\n-              sliderAlpha,\n-              sliderHue = colorpickerTemplate.find('colorpicker-hue'),\n-              sliderSaturation = colorpickerTemplate.find('colorpicker-saturation'),\n-              colorpickerPreview = colorpickerTemplate.find('colorpicker-preview'),\n-              pickerColorPointers = colorpickerTemplate.find('i');\n-\n-          $compile(colorpickerTemplate)($scope);\n-\n-          if (withInput) {\n-            var pickerColorInput = colorpickerTemplate.find('input');\n-            pickerColorInput\n-                .on('mousedown', function(event) {\n-                  event.stopPropagation();\n-                })\n-                .on('keyup', function(event) {\n-                  var newColor = this.value;\n-                  elem.val(newColor);\n-                  if(ngModel) {\n-                    $scope.$apply(ngModel.$setViewValue(newColor));\n-                  }\n-                  event.stopPropagation();\n-                  event.preventDefault();\n+    .factory('Swatches', function() {\n+        'use strict';\n+\n+        // Contains all the preset colors\n+        var colors = [\n+            ['#1e5667', '#3d7e92', '#97cad9', '#b6dfeb'],\n+            ['#863a27', '#c75336', '#d8765d', '#fbbfb0'],\n+            ['#677b31', '#8ba446', '#b0c870', '#def0ac'],\n+            ['#f28e1b', '#e19d4e', '#ffc17a', '#f8e7b9'],\n+            ['#520039', '#854271', '#a186be', '#d9cce7'],\n+            ['#603816', '#ad6628', '#e0b48d', '#edd1b8']\n+        ];\n+        return {\n+            getSwatches: function(elem) {\n+                return colors;\n+            }\n+        };\n+    })\n+    .directive('colorpicker', ['$window', '$document', '$compile', '$timeout', 'Color', 'Slider', 'Helper', 'Swatches', function($window, $document, $compile, $timeout, Color, Slider, Helper, Swatches) {\n+        'use strict';\n+        return {\n+            require: '?ngModel',\n+            restrict: 'A',\n+            link: function($scope, elem, attrs, ngModel) {\n+                var\n+                    streamid = attrs.streamid,\n+                    thisFormat = attrs.colorpicker ? attrs.colorpicker : 'hex',\n+                    position = angular.isDefined(attrs.colorpickerPosition) ? attrs.colorpickerPosition : 'right',\n+                    inline = angular.isDefined(attrs.colorpickerInline) ? attrs.colorpickerInline : false,\n+                    fixedPosition = angular.isDefined(attrs.colorpickerFixedPosition) ? attrs.colorpickerFixedPosition : false,\n+                    target = angular.isDefined(attrs.colorpickerParent) ? elem.parent() : angular.element(document.body),\n+                    withInput = angular.isDefined(attrs.colorpickerWithInput) ? attrs.colorpickerWithInput : false,\n+                    inputTemplate = withInput ? '<input type=\"text\" name=\"colorpicker-input\">' : '',\n+                    switchButton = !inline ? '<div ng-if=\"!palette\" class=\"switch-colorpicker\" ng-click=\"switchColorpickerView($event);\" stop-propagation><i class=\"icon icon-paintbrush\"></i></div><div class=\"switch-colorpicker\" ng-if=\"palette\" ng-click=\"switchColorpickerView($event);\" stop-propagation><i class=\"icon icon-swatches\"></i></div>' : '',","path":"js/bootstrap-colorpicker-module.js","position":607,"original_position":607,"commit_id":"b963631ef3776278b6c156e59b696ab4ff01c7f3","original_commit_id":"b963631ef3776278b6c156e59b696ab4ff01c7f3","user":{"login":"joshfinnie","id":125098,"avatar_url":"https://avatars.githubusercontent.com/u/125098?v=3","gravatar_id":"","url":"https://api.github.com/users/joshfinnie","html_url":"https://github.com/joshfinnie","followers_url":"https://api.github.com/users/joshfinnie/followers","following_url":"https://api.github.com/users/joshfinnie/following{/other_user}","gists_url":"https://api.github.com/users/joshfinnie/gists{/gist_id}","starred_url":"https://api.github.com/users/joshfinnie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshfinnie/subscriptions","organizations_url":"https://api.github.com/users/joshfinnie/orgs","repos_url":"https://api.github.com/users/joshfinnie/repos","events_url":"https://api.github.com/users/joshfinnie/events{/privacy}","received_events_url":"https://api.github.com/users/joshfinnie/received_events","type":"User","site_admin":false},"body":"Will the `inline` flag ever be triggered here? Since this has been modified heavily for our usecase, should we just remove the check?","created_at":"2015-11-24T16:39:35Z","updated_at":"2015-11-24T16:39:35Z","html_url":"https://github.com/TrackMaven/angular-bootstrap-colorpicker/pull/1#discussion_r45760052","pull_request_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/pulls/comments/45760052"},"html":{"href":"https://github.com/TrackMaven/angular-bootstrap-colorpicker/pull/1#discussion_r45760052"},"pull_request":{"href":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/pulls/1","id":51584010,"html_url":"https://github.com/TrackMaven/angular-bootstrap-colorpicker/pull/1","diff_url":"https://github.com/TrackMaven/angular-bootstrap-colorpicker/pull/1.diff","patch_url":"https://github.com/TrackMaven/angular-bootstrap-colorpicker/pull/1.patch","issue_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/issues/1","number":1,"state":"open","locked":false,"title":"Added our version of the color picker","user":{"login":"Nearhan","id":929160,"avatar_url":"https://avatars.githubusercontent.com/u/929160?v=3","gravatar_id":"","url":"https://api.github.com/users/Nearhan","html_url":"https://github.com/Nearhan","followers_url":"https://api.github.com/users/Nearhan/followers","following_url":"https://api.github.com/users/Nearhan/following{/other_user}","gists_url":"https://api.github.com/users/Nearhan/gists{/gist_id}","starred_url":"https://api.github.com/users/Nearhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nearhan/subscriptions","organizations_url":"https://api.github.com/users/Nearhan/orgs","repos_url":"https://api.github.com/users/Nearhan/repos","events_url":"https://api.github.com/users/Nearhan/events{/privacy}","received_events_url":"https://api.github.com/users/Nearhan/received_events","type":"User","site_admin":false},"body":"Added custom events \r\n","created_at":"2015-11-23T21:38:19Z","updated_at":"2015-11-24T16:39:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"acc694e6b5a44aff7f33bac042b6930e8e827520","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/pulls/1/commits","review_comments_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/pulls/1/comments","review_comment_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/issues/1/comments","statuses_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/statuses/b963631ef3776278b6c156e59b696ab4ff01c7f3","head":{"label":"TrackMaven:tm-master","ref":"tm-master","sha":"b963631ef3776278b6c156e59b696ab4ff01c7f3","user":{"login":"TrackMaven","id":2388536,"avatar_url":"https://avatars.githubusercontent.com/u/2388536?v=3","gravatar_id":"","url":"https://api.github.com/users/TrackMaven","html_url":"https://github.com/TrackMaven","followers_url":"https://api.github.com/users/TrackMaven/followers","following_url":"https://api.github.com/users/TrackMaven/following{/other_user}","gists_url":"https://api.github.com/users/TrackMaven/gists{/gist_id}","starred_url":"https://api.github.com/users/TrackMaven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrackMaven/subscriptions","organizations_url":"https://api.github.com/users/TrackMaven/orgs","repos_url":"https://api.github.com/users/TrackMaven/repos","events_url":"https://api.github.com/users/TrackMaven/events{/privacy}","received_events_url":"https://api.github.com/users/TrackMaven/received_events","type":"Organization","site_admin":false},"repo":{"id":45863408,"name":"angular-bootstrap-colorpicker","full_name":"TrackMaven/angular-bootstrap-colorpicker","owner":{"login":"TrackMaven","id":2388536,"avatar_url":"https://avatars.githubusercontent.com/u/2388536?v=3","gravatar_id":"","url":"https://api.github.com/users/TrackMaven","html_url":"https://github.com/TrackMaven","followers_url":"https://api.github.com/users/TrackMaven/followers","following_url":"https://api.github.com/users/TrackMaven/following{/other_user}","gists_url":"https://api.github.com/users/TrackMaven/gists{/gist_id}","starred_url":"https://api.github.com/users/TrackMaven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrackMaven/subscriptions","organizations_url":"https://api.github.com/users/TrackMaven/orgs","repos_url":"https://api.github.com/users/TrackMaven/repos","events_url":"https://api.github.com/users/TrackMaven/events{/privacy}","received_events_url":"https://api.github.com/users/TrackMaven/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TrackMaven/angular-bootstrap-colorpicker","description":"Native AngularJS colorpicker directive. No dependency on jQuery or jQuery plugin is required.","fork":true,"url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker","forks_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/forks","keys_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/teams","hooks_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/hooks","issue_events_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/issues/events{/number}","events_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/events","assignees_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/assignees{/user}","branches_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/branches{/branch}","tags_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/tags","blobs_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/git/refs{/sha}","trees_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/statuses/{sha}","languages_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/languages","stargazers_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/stargazers","contributors_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/contributors","subscribers_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/subscribers","subscription_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/subscription","commits_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/commits{/sha}","git_commits_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/git/commits{/sha}","comments_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/comments{/number}","issue_comment_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/issues/comments{/number}","contents_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/contents/{+path}","compare_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/merges","archive_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/downloads","issues_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/issues{/number}","pulls_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/pulls{/number}","milestones_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/milestones{/number}","notifications_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/labels{/name}","releases_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/releases{/id}","created_at":"2015-11-09T20:03:58Z","updated_at":"2015-11-09T20:03:59Z","pushed_at":"2015-11-24T16:19:49Z","git_url":"git://github.com/TrackMaven/angular-bootstrap-colorpicker.git","ssh_url":"git@github.com:TrackMaven/angular-bootstrap-colorpicker.git","clone_url":"https://github.com/TrackMaven/angular-bootstrap-colorpicker.git","svn_url":"https://github.com/TrackMaven/angular-bootstrap-colorpicker","homepage":"","size":453,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"TrackMaven:master","ref":"master","sha":"4cdbd1ae15db4123641f8f636e1b64a269d75b58","user":{"login":"TrackMaven","id":2388536,"avatar_url":"https://avatars.githubusercontent.com/u/2388536?v=3","gravatar_id":"","url":"https://api.github.com/users/TrackMaven","html_url":"https://github.com/TrackMaven","followers_url":"https://api.github.com/users/TrackMaven/followers","following_url":"https://api.github.com/users/TrackMaven/following{/other_user}","gists_url":"https://api.github.com/users/TrackMaven/gists{/gist_id}","starred_url":"https://api.github.com/users/TrackMaven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrackMaven/subscriptions","organizations_url":"https://api.github.com/users/TrackMaven/orgs","repos_url":"https://api.github.com/users/TrackMaven/repos","events_url":"https://api.github.com/users/TrackMaven/events{/privacy}","received_events_url":"https://api.github.com/users/TrackMaven/received_events","type":"Organization","site_admin":false},"repo":{"id":45863408,"name":"angular-bootstrap-colorpicker","full_name":"TrackMaven/angular-bootstrap-colorpicker","owner":{"login":"TrackMaven","id":2388536,"avatar_url":"https://avatars.githubusercontent.com/u/2388536?v=3","gravatar_id":"","url":"https://api.github.com/users/TrackMaven","html_url":"https://github.com/TrackMaven","followers_url":"https://api.github.com/users/TrackMaven/followers","following_url":"https://api.github.com/users/TrackMaven/following{/other_user}","gists_url":"https://api.github.com/users/TrackMaven/gists{/gist_id}","starred_url":"https://api.github.com/users/TrackMaven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrackMaven/subscriptions","organizations_url":"https://api.github.com/users/TrackMaven/orgs","repos_url":"https://api.github.com/users/TrackMaven/repos","events_url":"https://api.github.com/users/TrackMaven/events{/privacy}","received_events_url":"https://api.github.com/users/TrackMaven/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TrackMaven/angular-bootstrap-colorpicker","description":"Native AngularJS colorpicker directive. No dependency on jQuery or jQuery plugin is required.","fork":true,"url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker","forks_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/forks","keys_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/teams","hooks_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/hooks","issue_events_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/issues/events{/number}","events_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/events","assignees_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/assignees{/user}","branches_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/branches{/branch}","tags_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/tags","blobs_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/git/refs{/sha}","trees_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/statuses/{sha}","languages_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/languages","stargazers_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/stargazers","contributors_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/contributors","subscribers_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/subscribers","subscription_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/subscription","commits_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/commits{/sha}","git_commits_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/git/commits{/sha}","comments_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/comments{/number}","issue_comment_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/issues/comments{/number}","contents_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/contents/{+path}","compare_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/merges","archive_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/downloads","issues_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/issues{/number}","pulls_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/pulls{/number}","milestones_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/milestones{/number}","notifications_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/labels{/name}","releases_url":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/releases{/id}","created_at":"2015-11-09T20:03:58Z","updated_at":"2015-11-09T20:03:59Z","pushed_at":"2015-11-24T16:19:49Z","git_url":"git://github.com/TrackMaven/angular-bootstrap-colorpicker.git","ssh_url":"git@github.com:TrackMaven/angular-bootstrap-colorpicker.git","clone_url":"https://github.com/TrackMaven/angular-bootstrap-colorpicker.git","svn_url":"https://github.com/TrackMaven/angular-bootstrap-colorpicker","homepage":"","size":453,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/pulls/1"},"html":{"href":"https://github.com/TrackMaven/angular-bootstrap-colorpicker/pull/1"},"issue":{"href":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/issues/1"},"comments":{"href":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/TrackMaven/angular-bootstrap-colorpicker/statuses/b963631ef3776278b6c156e59b696ab4ff01c7f3"}}}}