/*- * ================================================================================ * DCAE DMaaP Bus Controller Web Application * ================================================================================ * Copyright (C) 2017 AT&T Intellectual Property * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ================================================================================ */ /*! * jquery.resize.js 0.0.1 - https://github.com/yckart/jquery.resize.js * Resize-event for DOM-Nodes * * @see http://workingdraft.de/113/ * @see http://www.backalleycoder.com/2013/03/18/cross-browser-event-based-element-resize-detection/ * * Copyright (c) 2013 Yannick Albert (http://yckart.com) * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php). * 2013/04/01 */ (function(factory) { if(typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['jquery'], factory); } else if(typeof exports === 'object') { // Node/CommonJS style for Browserify module.exports = factory; } else { // Browser globals factory(jQuery); } }(function($) { function addFlowListener(element, type, fn) { var flow = type == 'over'; element.addEventListener('OverflowEvent' in window ? 'overflowchanged' : type + 'flow', function(e) { if(e.type == (type + 'flow') || ((e.orient == 0 && e.horizontalOverflow == flow) || (e.orient == 1 && e.verticalOverflow == flow) || (e.orient == 2 && e.horizontalOverflow == flow && e.verticalOverflow == flow))) { e.flow = type; return fn.call(this, e); } }, false); }; function fireEvent(element, type, data, options) { var options = options || {}, event = document.createEvent('Event'); event.initEvent(type, 'bubbles' in options ? options.bubbles : true, 'cancelable' in options ? options.cancelable : true); for(var z in data) event[z] = data[z]; element.dispatchEvent(event); }; $.event.special.resize = { setup: function() { var element = this; var resize = 'onresize' in element; if(!resize && !element._resizeSensor) { var sensor = element._resizeSensor = document.createElement('div'); sensor.className = 'resize-sensor'; sensor.innerHTML = '