diff options
Diffstat (limited to 'js/vendor/angular-ui/common/ieshiv/ieshiv.js')
-rw-r--r-- | js/vendor/angular-ui/common/ieshiv/ieshiv.js | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/js/vendor/angular-ui/common/ieshiv/ieshiv.js b/js/vendor/angular-ui/common/ieshiv/ieshiv.js deleted file mode 100644 index c34b27d36..000000000 --- a/js/vendor/angular-ui/common/ieshiv/ieshiv.js +++ /dev/null @@ -1,52 +0,0 @@ -// READ: http://docs-next.angularjs.org/guide/ie -// element tags are statically defined in order to accommodate lazy-loading whereby directives are also unknown - -// The ieshiv takes care of our ui.directives and AngularJS's ng-view, ng-include, ng-pluralize, ng-switch. -// However, IF you have custom directives that can be used as html tags (yours or someone else's) then -// add list of directives into <code>window.myCustomTags</code> - -// <!--[if lte IE 8]> -// <script> -// window.myCustomTags = [ 'yourCustomDirective', 'somebodyElsesDirective' ]; // optional -// </script> -// <script src="build/angular-ui-ieshiv.js"></script> -// <![endif]--> - -(function (exports) { - - var debug = window.ieShivDebug || false, - tags = [ "ngInclude", "ngPluralize", "ngView", "ngSwitch", "uiCurrency", "uiCodemirror", "uiDate", "uiEvent", - "uiKeypress", "uiKeyup", "uiKeydown", "uiMask", "uiMapInfoWindow", "uiMapMarker", "uiMapPolyline", - "uiMapPolygon", "uiMapRectangle", "uiMapCircle", "uiMapGroundOverlay", "uiModal", "uiReset", - "uiScrollfix", "uiSelect2", "uiShow", "uiHide", "uiToggle", "uiSortable", "uiTinymce" - ]; - - window.myCustomTags = window.myCustomTags || []; // externally defined by developer using angular-ui directives - tags.push.apply(tags, window.myCustomTags); - - var toCustomElements = function (str) { - var result = []; - var dashed = str.replace(/([A-Z])/g, function ($1) { - return " " + $1.toLowerCase(); - }); - var tokens = dashed.split(' '); - var ns = tokens[0]; - var dirname = tokens.slice(1).join('-'); - - // this is finite list and it seemed senseless to create a custom method - result.push(ns + ":" + dirname); - result.push(ns + "-" + dirname); - result.push("x-" + ns + "-" + dirname); - result.push("data-" + ns + "-" + dirname); - return result; - }; - - for (var i = 0, tlen = tags.length; i < tlen; i++) { - var customElements = toCustomElements(tags[i]); - for (var j = 0, clen = customElements.length; j < clen; j++) { - var customElement = customElements[j]; - document.createElement(customElement); - } - } - -})(window);
\ No newline at end of file |