1 2WS.Namespace.Create('WS.Editor.Text.UI', (function () { 3 // Constructor(s) 4 var Class = function (control, element) { 5 // Validation 6 if (!control) throw "control is null"; 7 if (!element) throw "element is null"; 8 9 this.control = control; 10 this.element = element; 11 12 if (window.WS && window.WS.IsMobile && this.control.content && this.control.content.length > 0 && $(this.control.content[0]).hasClass("Block")) { 13 $(this.control.content[0]).css("height", "auto").addClass("wsMobile"); 14 } 15 16 // EVENT (DOM READY FOR PUSHING ENGINE) 17 WS.EventObject.call(this, ["dom_ready"]); 18 19 if (control.onLoaded) control.onLoaded(this); 20 }; 21 22 WS.Exts.Inherits(Class, WS.EventObject); 23 24 // Public Method(s) 25 (function (Methods) { 26 27 Methods.onResized = function (width, height) { 28 29 }; 30 31 Methods.onResize = function (width, height) { 32 33 }; 34 35 })(Class.prototype); 36 37 return Class; 38})());
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.