100+ results results for 'that = this' (833 ms)
3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 101 * Default is to return the additional 'B' suffix, e.g. '10.5KB' to minimize 102 * confusion with counts that are scaled by powers of 1000. 103 * @param {number} val Value to be converted. 241/** 242 * First Unicode code point that has the Mark property. 243 * @type {number} 254 * With common strings aliased, objects allocations are constant based on the 255 * length of the string: N + 3. This guarantee does not hold if the string 256 * contains an element >= U+0300 and hasGraphemeBreak is non-trivial. 274 275 // This will contain the ampersand or less-than character if one of the 276 // two has been seen; otherwise, the value is zero.le.dyn.js https://gitlab.com/Mirros/cdnjs | JavaScript | 452 lines
23 24 this.setRequestHeader = function(key, value) { 25 _headers[key] = value; 41 var resp = data.split("\r\n"); 42 that.status = resp[0].split(" ")[1]; 43 } 46 47 var that = this; 48 252 if (_indexOf(cache, value) !== -1) { 253 // We've seen this object before; 254 // return a placeholder instead to prevent 440 for (var k in loggers) 441 loggers[k].warn.apply(this, arguments); 442 },nixtransport.js https://github.com/pdubroy/Purple.git | JavaScript | 474 lines
84 // compression. 85 this[goog.net.xpc.NixTransport.NIX_HANDLE_MESSAGE] = this.handleMessage_; 86 this[goog.net.xpc.NixTransport.NIX_CREATE_CHANNEL] = this.createChannel_; 337 if (!this.localSetupCompleted_) { 338 this.getWindow().setTimeout(goog.bind(this.attemptOuterSetup_, this), 100); 339 } 349 * with the container by calling CreateChannel with an instance 350 * of a wrapper for *this* page. Note that if this method 351 * fails, it will continue to loop until it succeeds. 395 if (!this.localSetupCompleted_) { 396 this.getWindow().setTimeout(goog.bind(this.attemptInnerSetup_, this), 100); 397 } 446 447 this.getWindow().setTimeout(goog.bind(deliveryHandler, this), 1); 448};jquery_ujs.js https://github.com/alenchen/rails_admin.git | JavaScript | 363 lines
30 * If any blank required inputs (required="required") are detected in the remote form, the whole form submission 31 * is canceled. Note that this is unlike file inputs, which still allow standard (non-AJAX) form submission. 32 * 34 * 35 * !! Note that Opera does not fire the form's submit event if there are blank required inputs, so this event may never 36 * get fired in Opera. This event is what causes other browsers to exhibit the same submit-aborting behavior. 207 Attaching a handler to the element's `confirm` event that returns a `falsy` value cancels the confirmation dialog. 208 Attaching a handler to the element's `confirm:complete` event that returns a `falsy` value makes this function 209 return false. The `confirm:complete` event is fired whether or not the user answered true or false to the dialog. 355 $(rails.formSubmitSelector).live('ajax:beforeSend.rails', function(event) { 356 if (this == event.target) rails.disableFormElements($(this)); 357 }); 359 $(rails.formSubmitSelector).live('ajax:complete.rails', function(event) { 360 if (this == event.target) rails.enableFormElements($(this)); 361 });mustache.js https://gitlab.com/judielsm/Handora | JavaScript | 536 lines
84 if (match && match.index === 0) { 85 this.tail = this.tail.substring(match[0].length); 86 this.pos += match[0].length; 102 match = this.tail; 103 this.pos += this.tail.length; 104 this.tail = ""; 179 var tokens = mustache.parse(template, tags); 180 fn = this._cache[template] = this.compileTokens(tokens, template); 181 } 193 if (!(name in this._partialCache) && this._loadPartial) { 194 this.compilePartial(name, this._loadPartial(name)); 195 } 292 * all tokens that appear in that section and 2) the index in the original 293 * template that represents the end of that section. 294 */hasher.js https://gitlab.com/Mirros/cdnjs | JavaScript | 417 lines
26 27 // frequency that it will check hash value on IE 6-7 since it doesn't 28 // support the hashchange event 50 51 //hack based on this: http://webreflection.blogspot.com/2009/01/32-bytes-to-know-if-your-browser-is-ie.html 52 _isIE = (!+"\v1"), 200 /** 201 * String that should always be added to the end of Hash value. 202 * <ul> 204 * <li>will be automatically removed from `hasher.getHash()`</li> 205 * <li>avoid conflicts with elements that contain ID equal to hash value;</li> 206 * </ul> 211 /** 212 * String that should always be added to the beginning of Hash value. 213 * <ul>fck_othercommands.js https://bitbucket.org/iGrizZli/iodev-facegallery.git | JavaScript | 634 lines
20 * 21 * Definition of other commands that are not available internaly in the 22 * browser (see FCKNamedCommand). 31 this.Width = width ; 32 this.Height = height ; 33 this.CustomValue = customValue ; 42{ 43 FCKDialog.OpenDialog( 'FCKDialog_' + this.Name , this.Title, this.Url, this.Width, this.Height, this.CustomValue, null, this.Resizable ) ; 44} 48 if ( this.GetStateFunction ) 49 return this.GetStateFunction( this.GetStateParam ) ; 50 else 179{ 180 this.Name = 'Source' ; 181}flowchart_directive.spec.js https://gitlab.com/kingofhappy/openbdre | JavaScript | 618 lines
115 inverse: function () { 116 return this; 117 }, 125 matrixTransform: function () { 126 return this; 127 }, 507 // 508 // Fake out the function that check if a connection has been hit. 509 // 536 // 537 // Fake out the function that check if a connection has been hit. 538 // 570 // 571 // Fake out the function that check if a connector has been hit. 572 //Matrix2D.js https://github.com/GuriK/RPG-JS.git | JavaScript | 503 lines
305 // prepend the registration offset: 306 this.tx -= regX*this.a+regY*this.c; 307 this.ty -= regX*this.b+regY*this.d; 373 this.alpha = this.a = this.d = 1; 374 this.b = this.c = this.tx = this.ty = 0; 375 this.shadow = this.compositeOperation = null; 411 target.scaleX = Math.sqrt(this.a * this.a + this.b * this.b); 412 target.scaleY = Math.sqrt(this.c * this.c + this.d * this.d); 413 482 p.clone = function() { 483 var mtx = new Matrix2D(this.a, this.b, this.c, this.d, this.tx, this.ty); 484 mtx.shadow = this.shadow; 495 p.toString = function() { 496 return "[Matrix2D (a="+this.a+" b="+this.b+" c="+this.c+" d="+this.d+" tx="+this.tx+" ty="+this.ty+")]"; 497 }plugin.js https://github.com/konscript/ingelouv.git | JavaScript | 481 lines
169 170 var params = this.filebrowser.params || {}; 171 params.CKEditor = editor.name; 175 176 var url = addQueryString( this.filebrowser.url, params ); 177 editor.popup( url, width, height ); 195 // If user didn't select the file, stop the upload. 196 if ( !dialog.getContentElement( this[ 'for' ][ 0 ], this[ 'for' ][ 1 ] ).getInputElement().$.value ) 197 return false; 198 199 if ( !dialog.getContentElement( this[ 'for' ][ 0 ], this[ 'for' ][ 1 ] ).getAction() ) 200 return false; 355 var dialog = this._.filebrowserSe.getDialog(), 356 targetInput = this._.filebrowserSe[ 'for' ], 357 onSelect = this._.filebrowserSe.filebrowser.onSelect;foundation.topbar.js https://gitlab.com/pythonschool/python-school-theme | JavaScript | 445 lines
27 28 self.S('[' + this.attr_name() + ']', this.scope).each(function () { 29 var topbar = $(this), 210 211 var $this = S(this), 212 topbar = $this.closest('[' + self.attr_name() + ']'), 249 // Go up a level on Click 250 S(this.scope).on('click.fndtn.topbar', '[' + this.attr_name() + '] .has-dropdown .back', function (e) { 251 e.preventDefault(); 252 253 var $this = S(this), 254 topbar = $this.closest('[' + self.attr_name() + ']'), 419 420 if (self.settings.sticky_topbar && self.is_sticky(this.settings.sticky_topbar,this.settings.sticky_topbar.parent(), this.settings)) { 421 var distance = this.settings.sticky_topbar.data('stickyoffset');jqplot.BezierCurveRenderer.js https://gitlab.com/bruce.ng/Professional-Ajax | JavaScript | 314 lines
66 xp.call(this._xaxis, data[1][4]), yp.call(this._yaxis, data[1][5])], 67 [xp.call(this._xaxis, data[1][4]), yp.call(this._yaxis, this._yaxis.min)], 68 [xp.call(this._xaxis, data[0][0]), yp.call(this._yaxis, this._yaxis.min)] 92 [xp.call(this._xaxis, data[3][1]), yp.call(this._yaxis, this._yaxis.min)], 93 [xp.call(this._xaxis, data[0][0]), yp.call(this._yaxis, this._yaxis.min)] 94 ]; 113 // converts any arbitrary data values to grid coordinates and 114 // returns them. This method exists so that plugins can use a series' 115 // linerenderer to generate grid data points without overwriting the 134 [xp.call(this._xaxis, data[1][4]), yp.call(this._yaxis, this._yaxis.min)], 135 [xp.call(this._xaxis, data[0][0]), yp.call(this._yaxis, this._yaxis.min)] 136 ]; 159 [xp.call(this._xaxis, data[3][1]), yp.call(this._yaxis, this._yaxis.min)], 160 [xp.call(this._xaxis, data[0][0]), yp.call(this._yaxis, this._yaxis.min)] 161 ];jquery.panzoom.js https://bitbucket.org/codenamegary/l4sacs.git | JavaScript | 467 lines
111 'zoomIn': function (steps) { 112 var data = this.data('panZoom'); 113 if (typeof(steps) == 'undefined') { 186 data.position.y1 = this.position().top; 187 data.position.x2 = this.position().left*1 + this.width(); 188 data.position.y2 = this.position().top*1 + this.height(); 272 if (settings.mousewheel && typeof(this.mousewheel) == 'function') { 273 this.parent().mousewheel(function(event, delta) { event.preventDefault(); $(this).find('img').panZoom('mouseWheel', delta) } ); 274 } else if (settings.mousewheel) { 300 viewport_element: this.parent(), 301 viewport_dimensions: { x: this.parent().width(), y: this.parent().height() }, 302 position: { x1: null, y1: null, x2: null, y2: null }, 428 function getCurrentAspectRatio() { 429 return (getWidth.apply(this) / getHeight.apply(this)); 430 }jquery.flot.navigate.js https://gitlab.com/Mirros/cdnjs | JavaScript | 272 lines
45"zoomRange" is the interval in which zooming can happen, e.g. with 46zoomRange: [1, 100] the zoom will never scale the axis so that the 47difference between min and max is smaller than 1 or larger than 100. 63*/ 64(function(E){E.fn.drag=function(L,K,J){if(K){this.bind("dragstart",L)}if(J){this.bind("dragend",J)}return !L?this.trigger("drag"):this.bind("drag",K?K:L)};var A=E.event,B=A.special,F=B.drag={not:":input",distance:0,which:1,dragging:false,setup:function(J){J=E.extend({distance:F.distance,which:F.which,not:F.not},J||{});J.distance=I(J.distance);A.add(this,"mousedown",H,J);if(this.attachEvent){this.attachEvent("ondragstart",D)}},teardown:function(){A.remove(this,"mousedown",H);if(this===F.dragging){F.dragging=F.proxy=false}G(this,true);if(this.detachEvent){this.detachEvent("ondragstart",D)}}};B.dragstart=B.dragend={setup:function(){},teardown:function(){}};function H(L){var K=this,J,M=L.data||{};if(M.elem){K=L.dragTarget=M.elem;L.dragProxy=F.proxy||K;L.cursorOffsetX=M.pageX-M.left;L.cursorOffsetY=M.pageY-M.top;L.offsetX=L.pageX-L.cursorOffsetX;L.offsetY=L.pageY-L.cursorOffsetY}else{if(F.dragging||(M.which>0&&L.which!=M.which)||E(L.target).is(M.not)){return }}switch(L.type){case"mousedown":E.extend(M,E(K).offset(),{elem:K,target:L.target,pageX:L.pageX,pageY:L.pageY});A.add(document,"mousemove mouseup",H,M);G(K,false);F.dragging=null;return false;case !F.dragging&&"mousemove":if(I(L.pageX-M.pageX)+I(L.pageY-M.pageY)<M.distance){break}L.target=M.target;J=C(L,"dragstart",K);if(J!==false){F.dragging=K;F.proxy=L.dragProxy=E(J||K)[0]}case"mousemove":if(F.dragging){J=C(L,"drag",K);if(B.drop){B.drop.allowed=(J!==false);B.drop.handler(L)}if(J!==false){break}L.type="mouseup"}case"mouseup":A.remove(document,"mousemove mouseup",H);if(F.dragging){if(B.drop){B.drop.handler(L)}C(L,"dragend",K)}G(K,true);F.dragging=F.proxy=M.elem=false;break}return true}function C(M,K,L){M.type=K;var J=E.event.handle.call(L,M);return J===false?false:J||M.result}function I(J){return Math.pow(J,2)}function D(){return(F.dragging===false)}function G(K,J){if(!K){return }K.unselectable=J?"off":"on";K.onselectstart=function(){return J};if(K.style){K.style.MozUserSelect=J?"":"none"}}})(jQuery); 65 77 */ 78(function(c){var a=["DOMMouseScroll","mousewheel"];c.event.special.mousewheel={setup:function(){if(this.addEventListener){for(var d=a.length;d;){this.addEventListener(a[--d],b,false)}}else{this.onmousewheel=b}},teardown:function(){if(this.removeEventListener){for(var d=a.length;d;){this.removeEventListener(a[--d],b,false)}}else{this.onmousewheel=null}}};c.fn.extend({mousewheel:function(d){return d?this.bind("mousewheel",d):this.trigger("mousewheel")},unmousewheel:function(d){return this.unbind("mousewheel",d)}});function b(f){var d=[].slice.call(arguments,1),g=0,e=true;f=c.event.fix(f||window.event);f.type="mousewheel";if(f.wheelDelta){g=f.wheelDelta/120}if(f.detail){g=-f.detail/3}d.unshift(f,g);return c.event.handle.apply(this,d)}})(jQuery); 79sync.js https://gitlab.com/blocknotary/IonicInterviews | JavaScript | 460 lines
45 for (var i = 0; i < n; i ++) { 46 this._process(this.minimatch.set[i], i, false) 47 } 172 173 if (remain.length === 1 && !this.mark && !this.stat) { 174 if (!this.matches[index]) 218 if (this.nodir) { 219 var c = this.cache[this._makeAbs(e)] 220 if (c === 'DIR' || Array.isArray(c)) 285 // having to stat it a second time. 286 if (!this.mark && !this.stat) { 287 for (var i = 0; i < entries.length; i ++) { 307 case 'ENOTDIR': // totally normal. means it *does* exist. 308 this.cache[this._makeAbs(f)] = 'FILE' 309 breakv3.js https://gitlab.com/Blueprint-Marketing/cdnjs | JavaScript | 351 lines
17 * 18 * Note that this layer configures the google.maps.map object with the 19 * "disableDefaultUI" option set to true. Using UI controls that the Google 69 } else { 70 // this is the first Google layer for this map 71 // create GMap 104 this.mapObject = mapObject; 105 this.setGMapVisibility(this.visibility); 106 }, 225 var size = this.map.getSize(); 226 var lon = this.getLongitudeFromMapObjectLonLat(this.mapObject.center); 227 var lat = this.getLatitudeFromMapObjectLonLat(this.mapObject.center); 271 setMapObjectCenter: function(center, zoom) { 272 if (this.animationEnabled === false && zoom != this.mapObject.zoom) { 273 var mapContainer = this.getMapContainer();VisualStyleNumberInputBox.js https://gitlab.com/paretje/qtwebkit | JavaScript | 409 lines
67 68 this._keywordSelectElement.addEventListener("focus", this._focusContentElement.bind(this)); 69 this._keywordSelectElement.addEventListener("mousedown", this._keywordSelectMouseDown.bind(this)); 82 this._valueNumberInputElement.addEventListener("keyup", this._valueNumberInputKeyUp.bind(this)); 83 this._valueNumberInputElement.addEventListener("blur", this._blurContentElement.bind(this)); 84 this._valueNumberInputElement.addEventListener("change", this._valueNumberInputChanged.bind(this)); 94 this._valueNumberInputElement.setAttribute("placeholder", 0); 95 this._unitsElementTextContent = this._keywordSelectElement.value = this.valueIsSupportedUnit("px") ? "px" : this._possibleUnits.basic[0]; 96 } 162 163 if (!unit && !this._possibleUnits.basic.includes(this._unitlessNumberUnit) && !this.valueIsSupportedUnit(unit)) 164 return; 276 if (!value && isNaN(value)) { 277 let placeholderValue = this.placeholder && !isNaN(this.placeholder) ? parseFloat(this.placeholder) : 0; 278 newValue = placeholderValue + delta;ng_form_control.js https://gitlab.com/remynaps/Vexillarius | JavaScript | 143 lines
6}; 7var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { 8 var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; 12}; 13var __metadata = (this && this.__metadata) || function (k, v) { 14 if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); 15}; 16var __param = (this && this.__param) || function (paramIndex, decorator) { 17 return function (target, key) { decorator(target, key, paramIndex); } 85 if (this._isControlChanged(changes)) { 86 shared_1.setUpControl(this.form, this); 87 this.form.updateValueAndValidity({ emitEvent: false }); 90 this.form.updateValue(this.model); 91 this.viewModel = this.model; 92 }Button.js https://github.com/shafiqissani/ASTRA-College-Website.git | JavaScript | 421 lines
89 90 this.leftImage.height = this.rightImage.height = this.centerImage.height = this.height; 91 this.leftImage.width = this.rightImage.width = endWidth+1; 93 this.centerImage.style.left=endWidth+"px"; 94 this._setImage(this.disabled ? this.disabledImg : this.inactiveImg); 95 261 // draw the arrow (todo: why is the arror in containerNode rather than outside it?) 262 this.arrow.src = dojo.uri.dojoUri(this.disabled ? this.disabledDownArrow : this.downArrow); 263 this.containerNode.appendChild(this.arrow); 323 this.buttonNode.style.width = endWidth + this.containerWidth + "px"; 324 this._setImage(this.disabled ? this.disabledImg : this.inactiveImg); 325 330 this.rightPart.style.width = this.arrowWidth + endWidth + "px"; 331 this._setImageR(this.disabled ? this.disabledImg : this.inactiveImg); 332Store.js.uncompressed.js https://gitlab.com/alidz1982/cdnjs | JavaScript | 287 lines
142 // If the collection of objects in the store has a natural ordering, 143 // this indicates that the created or updated object should be placed before the 144 // object specified by the value of this property. A value of null indicates that the 249 // the object should be now. If the value is -1, then the object is a removal 250 // from this result set (due to an object being deleted, or changed such that it 251 // is not a part of the result set). 252 // includeAllUpdates: 253 // This indicates whether or not to include object updates that do not affect 254 // the inclusion or order of the object in the query results. By default this is false, 254 // the inclusion or order of the object in the query results. By default this is false, 255 // which means that if any object is updated in such a way that it remains 256 // in the result set and it's position in result sets is not affected, then the listener 269 // summary: 270 // This is an object returned from transaction() calls that represents the current 271 // transaction.backbone-react-component.js https://gitlab.com/alidz1982/cdnjs | JavaScript | 288 lines
82 if (!this.wrapper) { 83 this.wrapper = new Wrapper(this, this.props); 84 } 124 $: function () { 125 return this.$el && this.$el.find.apply(this.$el, arguments); 126 }, 134 }, 135 // Sets a DOM element to render/mount this component on this.el and this.$el. 136 setElement: function (el) { 211 }, 212 // Used internally to set `this.collection` or `this.model` on `this.props`. Delegates to 213 // `this.setProps`. It listens to `Backbone.Collection` events such as `add`, `remove`, 238 } else { 239 this.nextProps = _.extend(this.nextProps || {}, props); 240 _.defer(_.bind(function () {query_command.js https://gitlab.com/junxianlim/kokochat | JavaScript | 296 lines
138 } else { 139 totalLengthOfCommand = 4 + Buffer.byteLength(this.collectionName) + 1 + 4 + 4 + this.db.bson.calculateObjectSize(this.query, this.serializeFunctions, true) + (4 * 4); 140 } 144 if(Object.keys(this.returnFieldSelector).length > 0) { 145 totalLengthOfCommand += this.db.bson.calculateObjectSize(this.returnFieldSelector, this.serializeFunctions, true); 146 } 229 if(this.query['$query']) { 230 this.db.bson.serializeWithBufferAndIndex(object['$query'], this.checkKeys, _command, _index, this.serializeFunctions) - _index + 1; 231 // Cannot check keys due to $query 235 // Serialize the document straight to the buffer 236 documentLength = this.db.bson.serializeWithBufferAndIndex(object, this.checkKeys, _command, _index, this.serializeFunctions) - _index + 1; 237 } 251 if(Object.keys(this.returnFieldSelector).length > 0) { 252 var documentLength = this.db.bson.serializeWithBufferAndIndex(this.returnFieldSelector, this.checkKeys, _command, _index, this.serializeFunctions) - _index + 1; 253 // Write the length to the documentapp.js https://gitlab.com/Alberto.SS/crm_verquet | JavaScript | 523 lines
202 activate: function () { 203 var _this = this; 204 _this.fix(); 305 //Get the clicked link and the next element 306 var $this = $(this); 307 var checkElement = $this.next(); 358 var o = $.AdminLTE.options; 359 var _this = this; 360 //Listen for collapse event triggers 362 e.preventDefault(); 363 _this.collapse($(this)); 364 }); 368 e.preventDefault(); 369 _this.remove($(this)); 370 });history-hash-ie-coverage.js https://bitbucket.org/Quartermain/yui3.git | JavaScript | 204 lines
28}; 29_yuitest_coverage["build/history-hash-ie/history-hash-ie.js"].code=["YUI.add('history-hash-ie', function (Y, NAME) {","","/**"," * Improves IE6/7 support in history-hash by using a hidden iframe to create"," * entries in IE's browser history. This module is only needed if IE6/7 support"," * is necessary; it's not needed for any other browser."," *"," * @module history"," * @submodule history-hash-ie"," * @since 3.2.0"," */","","// Combination of a UA sniff to ensure this is IE (or a browser that wants us to","// treat it like IE) and feature detection for native hashchange support (false","// for IE < 8 or IE8/9 in IE7 mode).","if (Y.UA.ie && !Y.HistoryBase.nativeHashChange) {"," var Do = Y.Do,"," GlobalEnv = YUI.namespace('Env.HistoryHash'),"," HistoryHash = Y.HistoryHash,",""," iframe = GlobalEnv._iframe,"," win = Y.config.win;",""," /**"," * Gets the raw (not decoded) current location hash from the IE iframe,"," * minus the preceding '#' character and the hashPrefix (if one is set)."," *"," * @method getIframeHash"," * @return {String} current iframe hash"," * @static"," */"," HistoryHash.getIframeHash = function () {"," if (!iframe || !iframe.contentWindow) {"," return '';"," }",""," var prefix = HistoryHash.hashPrefix,"," hash = iframe.contentWindow.location.hash.substr(1);",""," return prefix && hash.indexOf(prefix) === 0 ?"," hash.replace(prefix, '') : hash;"," };",""," /**"," * Updates the history iframe with the specified hash."," *"," * @method _updateIframe"," * @param {String} hash location hash"," * @param {Boolean} replace (optional) if <code>true</code>, the current"," * history state will be replaced without adding a new history entry"," * @protected"," * @static"," * @for HistoryHash"," */"," HistoryHash._updateIframe = function (hash, replace) {"," var iframeDoc = iframe && iframe.contentWindow && iframe.contentWindow.document,"," iframeLocation = iframeDoc && iframeDoc.location;",""," if (!iframeDoc || !iframeLocation) {"," return;"," }","",""," if (replace) {"," iframeLocation.replace(hash.charAt(0) === '#' ? hash : '#' + hash);"," } else {"," iframeDoc.open().close();"," iframeLocation.hash = hash;"," }"," };",""," Do.before(HistoryHash._updateIframe, HistoryHash, 'replaceHash', HistoryHash, true);",""," if (!iframe) {"," Y.on('domready', function () {"," var lastUrlHash = HistoryHash.getHash();",""," // Create a hidden iframe to store history state, following the"," // iframe-hiding recommendations from"," // http://www.paciellogroup.com/blog/?p=604."," //"," // This iframe will allow history navigation within the current page"," // context. After navigating to another page, all but the most"," // recent history state will be lost."," //"," // Earlier versions of the YUI History Utility attempted to work"," // around this limitation by having the iframe load a static"," // resource. This workaround was extremely fragile and tended to"," // break frequently (and silently) since it was entirely dependent"," // on IE's inconsistent handling of iframe history."," //"," // Since this workaround didn't work much of the time anyway and"," // added significant complexity, it has been removed, and IE6 and 7"," // now get slightly degraded history support.",""," iframe = GlobalEnv._iframe = Y.Node.getDOMNode(Y.Node.create("," '<iframe src=\"javascript:0\" style=\"display:none\" height=\"0\" width=\"0\" tabindex=\"-1\" title=\"empty\"/>'"," ));",""," // Append the iframe to the documentElement rather than the body."," // Keeping it outside the body prevents scrolling on the initial"," // page load (hat tip to Ben Alman and jQuery BBQ for this"," // technique)."," Y.config.doc.documentElement.appendChild(iframe);",""," // Update the iframe with the initial location hash, if any. This"," // will create an initial history entry that the user can return to"," // after the state has changed."," HistoryHash._updateIframe(lastUrlHash || '#');",""," // Listen for hashchange events and keep the iframe's hash in sync"," // with the parent frame's hash."," Y.on('hashchange', function (e) {"," lastUrlHash = e.newHash;",""," if (HistoryHash.getIframeHash() !== lastUrlHash) {"," HistoryHash._updateIframe(lastUrlHash);"," }"," }, win);",""," // Watch the iframe hash in order to detect back/forward navigation."," Y.later(50, null, function () {"," var iframeHash = HistoryHash.getIframeHash();",""," if (iframeHash !== lastUrlHash) {"," HistoryHash.setHash(iframeHash);"," }"," }, null, true);"," });"," }","}","","","}, '@VERSION@', {\"requires\": [\"history-hash\", \"node-base\"]});"]; 30_yuitest_coverage["build/history-hash-ie/history-hash-ie.js"].lines = {"1":0,"16":0,"17":0,"32":0,"33":0,"34":0,"37":0,"40":0,"55":0,"56":0,"59":0,"60":0,"64":0,"65":0,"67":0,"68":0,"72":0,"74":0,"75":0,"76":0,"96":0,"104":0,"109":0,"113":0,"114":0,"116":0,"117":0,"122":0,"123":0,"125":0,"126":0}; 38 * Improves IE6/7 support in history-hash by using a hidden iframe to create 39 * entries in IE's browser history. This module is only needed if IE6/7 support 40 * is necessary; it's not needed for any other browser. 46 47// Combination of a UA sniff to ensure this is IE (or a browser that wants us to 48// treat it like IE) and feature detection for native hashchange support (false 138 // 139 // This iframe will allow history navigation within the current page 140 // context. After navigating to another page, all but the most 143 // Earlier versions of the YUI History Utility attempted to work 144 // around this limitation by having the iframe load a static 145 // resource. This workaround was extremely fragile and tended tobasic.js https://github.com/tsschnoc/gapps_script_shared.git | JavaScript | 409 lines
68 bodyBorder: false, // useful for accordion containers since the inner panels have borders already 69 bodyStyle: 'background-color:#DFE8F6', // if all accordion panels are collapsed, this looks better in this layout 70 defaults: {bodyStyle: 'padding:15px'}, 87 title: 'Custom Panel Look and Feel', 88 cls: 'custom-accordion', // look in layout-browser.css to see the CSS rules for this class 89 html: '<p>Here is an example of how easy it is to completely customize the look and feel of an individual panel simply by adding a CSS class in the config.</p>' 174 title: 'Tab 1', 175 html: 'This is tab 1 content.' 176 },{ 177 title: 'Tab 2', 178 html: 'This is tab 2 content.' 179 },{ 244 columnWidth: 0.75, 245 html: '<p>This is some longer content.</p><p>This is some longer content.</p><p>This is some longer content.</p><p>This is some longer content.</p><p>This is some longer content.</p><p>This is some longer content.</p>' 246 },{Time.js https://bitbucket.org/leshrac88/maprox.git | JavaScript | 474 lines
183 if (Ext.isString(value)) { 184 return this.rawToValue(value); 185 } 247 rawToValue: function(rawValue) { 248 return this.parseDate(rawValue) || rawValue || null; 249 }, 251 valueToRaw: function(value) { 252 return this.formatDate(this.parseDate(value)); 253 }, 255 /** 256 * Runs all of Time's validations and returns an array of any errors. Note that this first runs Text's validations, 257 * so the returned array is an amalgamation of all field errors. The additional validation checks are testing that 471 getValue: function() { 472 return this.parseDate(this.callParent(arguments)); 473 }pfcgui.js https://bitbucket.org/shashwat_dinasource/bitscentral.git | JavaScript | 448 lines
38 // no it's not the current active one so just cache the elttoscroll in the famouse this.elttoscroll array 39 if (!this.elttoscroll.get(tabid)) this.elttoscroll.set(tabid, Array()); 40 this.elttoscroll.get(tabid).push(elttoscroll); 70 // first of all save the scroll pos of the visible tab 71 var content = this.getChatContentFromTabId(this.current_tab_id); 72 this.scrollpos.set(this.current_tab_id, content.scrollTop); 113 for (var i=0; i<this.elttoscroll.get(tabid).length; i++) 114 this.scrollDown(tabid,this.elttoscroll.get(tabid)[i]); 115 // empty the cached element list because it has been scrolled 183 var name = this.tabs[tabpos]; 184 this.tabids = without(this.tabids, this.tabids[tabpos]); 185 this.tabs = without(this.tabs, this.tabs[tabpos]); 185 this.tabs = without(this.tabs, this.tabs[tabpos]); 186 this.tabtypes = without(this.tabtypes, this.tabtypes[tabpos]); 187 tabpos = indexOf(this.tabids, this.getTabId());moodle-mod_quiz-util-slot.js https://gitlab.com/unofficial-mirrors/moodle | JavaScript | 445 lines
128 getSlots: function() { 129 return Y.all(this.SELECTORS.PAGECONTENT + ' ' + this.SELECTORS.SECTIONUL + ' ' + this.SELECTORS.SLOT); 130 }, 139 var selector = this.SELECTORS.PAGECONTENT + ' ' + this.SELECTORS.SECTIONUL; 140 selector += ' ' + this.SELECTORS.SLOT + ':not(' + this.SELECTORS.QUESTIONTYPEDESCRIPTION + ')'; 141 return Y.all(selector); 389 if (slotnumber == 1 || previousslot.getData('canfinish') === '0') { 390 slot.one(this.SELECTORS.DEPENDENCY_WRAPPER).addClass(this.CSS.CANNOT_DEPEND); 391 } else { 391 } else { 392 slot.one(this.SELECTORS.DEPENDENCY_WRAPPER).removeClass(this.CSS.CANNOT_DEPEND); 393 } 410 var previousSlot = this.getPrevious(slot); 411 var a = {thisq: this.getNumber(slot)}; 412 if (previousSlot) {modal_event_form.js https://gitlab.com/unofficial-mirrors/moodle | JavaScript | 492 lines
71 this.reloadingTitle = false; 72 this.saveButton = this.getFooter().find(SELECTORS.SAVE_BUTTON); 73 }; 323 324 this.bodyPromise = Fragment.loadFragment('calendar', 'event_form', this.getContextId(), args); 325 325 326 this.setBody(this.bodyPromise); 327 348 ModalEventForm.prototype.reloadAllContent = function() { 349 return $.when(this.reloadTitleContent(), this.reloadBodyContent()); 350 }; 483 484 // Automatically register with the modal registry the first time this module is imported so that you can create modals 485 // of this type using the modal factory.inlines.js https://bitbucket.org/isatoolsteam/bii-webapp.git | JavaScript | 272 lines
19 var options = $.extend({}, $.fn.formset.defaults, opts); 20 var $this = $(this); 21 var $parent = $this.parent(); 41 $this.each(function(i) { 42 $(this).not("." + options.emptyCssClass).addClass(options.formCssClass); 43 }); 78 row.find("*").each(function() { 79 updateElementIndex(this, options.prefix, totalForms.val()); 80 }); 92 e.preventDefault(); 93 // Remove the parent form containing this button: 94 var row = $(this).parents("." + options.formCssClass); 212 var count = i + 1; 213 $(this).html($(this).html().replace(/(#\d+)/g, "#" + count)); 214 });categoryexpander.js https://github.com/pauln/moodle.git | JavaScript | 454 lines
52 var doc = Y.one(Y.config.doc); 53 doc.delegate('click', this.toggle_category_expansion, SELECTORS.CATEGORYLISTENLINK, this); 54 doc.delegate('click', this.toggle_coursebox_expansion, SELECTORS.COURSEBOXLISTENLINK, this); 54 doc.delegate('click', this.toggle_coursebox_expansion, SELECTORS.COURSEBOXLISTENLINK, this); 55 doc.delegate('click', this.collapse_expand_all, SELECTORS.COLLAPSEEXPAND, this); 56 59 // can be very expensive. 60 doc.once('key', this.setup_keyboard_listeners, 'tab', this); 61}; 77 78 Y.one(Y.config.doc).delegate('key', this.toggle_category_expansion, 'enter', SELECTORS.CATEGORYLISTENLINK, this); 79 Y.one(Y.config.doc).delegate('key', this.toggle_coursebox_expansion, 'enter', SELECTORS.COURSEBOXLISTENLINK, this); 79 Y.one(Y.config.doc).delegate('key', this.toggle_coursebox_expansion, 'enter', SELECTORS.COURSEBOXLISTENLINK, this); 80 Y.one(Y.config.doc).delegate('key', this.collapse_expand_all, 'enter', SELECTORS.COLLAPSEEXPAND, this); 81};moodle-core-chooserdialogue.js https://bitbucket.org/kudutest1/moodlegit.git | JavaScript | 346 lines
112 // These will trigger a check_options call to display the correct help 113 thisevent = this.container.on('click', this.check_options, this); 114 this.listenevents.push(thisevent); 114 this.listenevents.push(thisevent); 115 thisevent = this.container.on('key_up', this.check_options, this); 116 this.listenevents.push(thisevent); 138 // Hook onto the cancel button to hide the form 139 thisevent = this.container.one('.addcancel').on('click', this.cancel_popup, this); 140 this.listenevents.push(thisevent); 142 // Hide will be managed by cancel_popup after restoring the body overflow 143 thisevent = bb.one('button.closebutton').on('click', this.cancel_popup, this); 144 this.listenevents.push(thisevent); 146 // Grab global keyup events and handle them 147 thisevent = Y.one('document').on('keydown', this.handle_key_press, this); 148 this.listenevents.push(thisevent);source-node.js https://gitlab.com/nhanvu/cyber-duck | JavaScript | 414 lines
22 // Private symbol for identifying `SourceNode`s when multiple versions of 23 // the source-map library are loaded. This MUST NOT CHANGE across 24 // versions! 39 function SourceNode(aLine, aColumn, aSource, aChunks, aName) { 40 this.children = []; 41 this.sourceContents = {}; 41 this.sourceContents = {}; 42 this.line = aLine == null ? null : aLine; 43 this.column = aColumn == null ? null : aColumn; 267 SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) { 268 var lastChild = this.children[this.children.length - 1]; 269 if (lastChild[isSourceNode]) { 272 else if (typeof lastChild === 'string') { 273 this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement); 274 }_gallery.js https://gitlab.com/rodrigo.butta/bgh | JavaScript | 348 lines
193 originalSize = {width: originalSizeArr[0], height: originalSizeArr[1]}, 194 dx = ((this.options.imgPosition.x > 0 ? 1-Math.abs(this.options.imgPosition.x) : Math.abs(this.options.imgPosition.x)) * win.width + this.options.imgPosition.x * win.width/2) - gridImgOffset.left - 0.5 * gridImg.offsetWidth, 195 dy = ((this.options.imgPosition.y > 0 ? 1-Math.abs(this.options.imgPosition.y) : Math.abs(this.options.imgPosition.y)) * win.height + this.options.imgPosition.y * win.height/2) - gridImgOffset.top - 0.5 * gridImg.offsetHeight, 195 dy = ((this.options.imgPosition.y > 0 ? 1-Math.abs(this.options.imgPosition.y) : Math.abs(this.options.imgPosition.y)) * win.height + this.options.imgPosition.y * win.height/2) - gridImgOffset.top - 0.5 * gridImg.offsetHeight, 196 z = Math.min( Math.min(win.width*Math.abs(this.options.imgPosition.x) - this.options.pagemargin, originalSize.width - this.options.pagemargin)/gridImg.offsetWidth, Math.min(win.height*Math.abs(this.options.imgPosition.y) - this.options.pagemargin, originalSize.height - this.options.pagemargin)/gridImg.offsetHeight ); 197 246 this.originalImg.style.maxWidth = 'calc(' + parseInt(Math.abs(this.options.imgPosition.x)*100) + 'vw - ' + this.options.pagemargin + 'px)'; 247 this.originalImg.style.maxHeight = 'calc(' + parseInt(Math.abs(this.options.imgPosition.y)*100) + 'vh - ' + this.options.pagemargin + 'px)'; 248 // need it because of firefox 289 // the grid item's image and its offset 290 var gridItem = this.items[this.current], 291 gridImg = gridItem.querySelector('img'), 306 dx = gridImgOffset.left + gridImg.offsetWidth/2 - ((this.options.imgPosition.x > 0 ? 1-Math.abs(this.options.imgPosition.x) : Math.abs(this.options.imgPosition.x)) * win.width + this.options.imgPosition.x * win.width/2), 307 dy = gridImgOffset.top + gridImg.offsetHeight/2 - ((this.options.imgPosition.y > 0 ? 1-Math.abs(this.options.imgPosition.y) : Math.abs(this.options.imgPosition.y)) * win.height + this.options.imgPosition.y * win.height/2), 308 z = gridImg.offsetWidth/this.originalImg.offsetWidth;Segment.js https://github.com/jjanzer/paper.js.git | JavaScript | 396 lines
93 // Delegate changes to affected curves if they exist 94 var curve = this._path._curves && this.getCurve(), other; 95 if (curve) { 142 // Update corner accordingly 143 // this.corner = !this._handleIn.isColinear(this._handleOut); 144 }, 161 // Update corner accordingly 162 // this.corner = !this._handleIn.isColinear(this._handleOut); 163 }, 310 reverse: function() { 311 return new Segment(this._point, this._handleOut, this._handleIn); 312 }, 317 remove: function() { 318 return this._path ? !!this._path.removeSegment(this._index) : false; 319 },jquery.mobile.vmouse.js https://github.com/beneater/khan-exercises.git | JavaScript | 506 lines
333 setup: function( data, namespace ) { 334 // If this is the first virtual mouse binding for this element, 335 // add a bindings object to its data. 388 teardown: function( data, namespace ) { 389 // If this is the last virtual binding for this eventType, 390 // remove its global handler from the document. 411 412 var $this = $( this ), 413 bindings = $.data( this, dataPropertyName ); 444// Add a capture click handler to block clicks. 445// Note that we require event capture support for this so if the device 446// doesn't support it, we punt for now and rely solely on mouse events. 477 // Aside from proximity, we also check to see if the target and any 478 // of its ancestors were the ones that blocked a click. This is necessary 479 // because of the strange mouse/click target calculation done in theIssueDropZone.js https://bitbucket.org/atlassian/jira-drag-drop-attachments-plugin.git | JavaScript | 367 lines
38 39 this.uploadLimit = this.$node.data('upload-limit'); 40 this.uploadSize = this.$node.data('upload-size'); 40 this.uploadSize = this.$node.data('upload-size'); 41 this.formToken = this.$node.data('form-token'); 42 this.attachFileUrl = contextPath + '/secure/AttachFile.jspa'; 59 // debounce required to make transition -> commit possible 60 $.when.apply(window, this.pendingQueue).always(_.debounce(this.checkMarkDirty, false, true).bind(this)); 61 }, 65 66 this.fileInput = this.$node.find('.issue-drop-zone__file'); 67 this.fileButton = this.$node.find('button.issue-drop-zone__button'); 85 86 var $dropNode = this.$node.parents('.issue-drop-zone').length > 0 ? this.$node.parents('.issue-drop-zone') : this.$node; 87 this.$dropTarget = $dropNode.find('>*').andSelf();Formula.js https://gitlab.com/knax/extjs | JavaScript | 372 lines
24 * manage this, a `ViewModel` *must* know the dependencies between data. In the above case 25 * this is accomplished by **parsing the text of the function**. While this is convenient 26 * and reduces the maintenance/risk that would come from explicitly listing dependencies 120 * 121 * this.set({ 122 * firstName: value.substring(0, split), 202 * @cfg {Function} [set] 203 * If provided this method allows a formula to be set. This method is typically called 204 * when `{@link Ext.app.bind.Binding#setValue}` is called. The `set` method executes 289 return this.fullName || 290 (this.fullName = this.stub.getFullName() + '=' + this.callParent() + ')'); 291 }, 349 setValue: function(value) { 350 this.set.call(this.stub.owner, value); 351 },jquery.gritter.js https://gitlab.com/kaouech/theme | JavaScript | 423 lines
87 * Add a gritter notification to the screen 88 * @param {Object} params The object that contains all the options for drawing the notification 89 * @return {Integer} The specific numeric id to that gritter notification 140 if(title){ 141 title = this._str_replace('[[title]]',title,this._tpl_title); 142 }else{ 147 ['[[title]]', '[[text]]', '[[close]]', '[[image]]', '[[number]]', '[[class_name]]', '[[item_class]]'], 148 [title, text, this._tpl_close, image_str, this._item_count, class_name, item_class], tmp 149 ); 176 if(!sticky){ 177 Gritter._setFadeTimer($(this), number); 178 } 336 337 var timer_str = (this._custom_timer) ? this._custom_timer : this.time; 338 this['_int_id_' + unique_id] = setTimeout(function(){Xml.js https://bitbucket.org/mblomdahl/neonode-mobile.git | JavaScript | 324 lines
5 * 6 * The XML Reader is used by a Proxy to read a server response that is sent back in XML format. This usually 7 * happens as a result of loading a Store - for example we might create something like this: 61 * pass XmlReader a couple of configuration options to make it parse your format. For example, we can use the 62 * {@link #rootProperty} configuration to parse data that comes back like this: 63 * 77 * 78 * To parse this we just pass in a {@link #rootProperty} configuration that matches the 'users' above: 79 * 210 */ 211 this.fireEvent('exception', this, response, 'XML data not found in the response'); 212 288 readRecords: function(doc) { 289 //it's possible that we get passed an array here by associations. Make sure we strip that out (see Ext.data.reader.Reader#readAssociated) 290 if (Ext.isArray(doc)) {pivot.js https://bitbucket.org/avikpal/mozilla-central.git | JavaScript | 457 lines
170 171 this.getID = function setVCRangeInvoker_getID() 172 { 203 204 this.getID = function setVCPosInvoker_getID() 205 { 288 289 this.getID = function setModalRootInvoker_getID() 290 { 301 * Add invokers to a queue to test a rule and an expected sequence of element ids 302 * or accessible names for that rule in the given document. 303 * 430 { 431 this.pivot.position = this.pivot.root.firstChild; 432 aRootNode.parentNode.removeChild(aRootNode);moment-duration-format.js https://gitlab.com/Mirros/cdnjs | JavaScript | 398 lines
91 settings = _.extend({}, this.format.defaults), 92 // keep a shadow copy of this moment for calculating remainders 93 remainder = moment.duration(this); 96 // in a template function 97 settings.duration = this; 98 198 199 // rationale is this: 200 // if the template is "h:mm:ss" and the moment value is 5 minutes, the user-friendly output is "5:00", not "05:00" 219 // the token is not the least moment token (don't trim the least moment token) 220 // the token is a moment token that does not have a value (don't trim moment tokens that have a whole value) 221 if (!(foundFirst || (token.isLeast || (token.type != null && token.wholeValue)))) { 239 // the token is not the least moment token (don't trim the least moment token) 240 // the token is a moment token that does not have a value (don't trim moment tokens that have a whole value) 241 return !(token.isLeast || (token.type != null && token.wholeValue));jquery.fluidbox.js https://gitlab.com/Mirros/cdnjs | JavaScript | 374 lines
33 // smartresize 34 jQuery.fn[sr] = function(fn){ return fn ? this.bind('resize', debounce(fn)) : this.trigger(sr); }; 35 77 // Declare variables 78 var $fb = this, 79 $w = $(window), // Shorthand for $(window) 182 $img = $(this).find('img'), 183 $ghost = $(this).find('.fluidbox-ghost'), 184 $wrap = $(this).find('.fluidbox-wrap'), 186 187 if($(this).data('fluidbox-state') === 0 || !$(this).data('fluidbox-state')) { 188 // State: Closed 315 // 4. If the element is hidden 316 if($(this).is('a') && $(this).children().length === 1 && $(this).children().is('img') && $(this).css('display') !== 'none' && $(this).parents().css('display') !=='none') { 317button-group-coverage.js https://bitbucket.org/harmonica/indy-map-backbone-require.git | JavaScript | 262 lines
29}; 30_yuitest_coverage["build/button-group/button-group.js"].code=["YUI.add('button-group', function (Y, NAME) {","","/**","* A Widget to create groups of buttons","*","* @module button-group","* @since 3.5.0","*/","","var CONTENT_BOX = \"contentBox\","," CLICK_EVENT = \"click\","," CLASS_NAMES = Y.ButtonCore.CLASS_NAMES;","","/**","* Creates a ButtonGroup","*","* @class ButtonGroup","* @extends Widget","* @param config {Object} Configuration object","* @constructor","*/","function ButtonGroup() {"," ButtonGroup.superclass.constructor.apply(this, arguments);","}","","/* ButtonGroup extends Widget */","Y.ButtonGroup = Y.extend(ButtonGroup, Y.Widget, {",""," /**"," * @method renderUI"," * @description Creates a visual representation of the widget based on existing parameters."," * @public"," */"," renderUI: function() {"," this.getButtons().plug(Y.Plugin.Button);"," },",""," /**"," * @method bindUI"," * @description Hooks up events for the widget"," * @public"," */"," bindUI: function() {"," var group = this,"," cb = group.get(CONTENT_BOX);",""," cb.delegate(CLICK_EVENT, group._handleClick, Y.ButtonGroup.BUTTON_SELECTOR, group);"," },",""," /**"," * @method getButtons"," * @description Returns all buttons inside this this button group"," * @public"," */"," getButtons: function() {"," var cb = this.get(CONTENT_BOX);",""," return cb.all(Y.ButtonGroup.BUTTON_SELECTOR);"," },",""," /**"," * @method getSelectedButtons"," * @description Returns all Y.Buttons instances that are selected"," * @public"," */"," getSelectedButtons: function() {"," var group = this,"," selected = [],"," buttons = group.getButtons(),"," selectedClass = ButtonGroup.CLASS_NAMES.SELECTED;",""," buttons.each(function(node){"," if (node.hasClass(selectedClass)){"," selected.push(node);"," }"," });",""," return selected;"," },",""," /**"," * @method getSelectedValues"," * @description Returns the values of all Y.Button instances that are selected"," * @public"," */"," getSelectedValues: function() {"," var group = this,"," value,"," values = [],"," selected = group.getSelectedButtons(),"," selectedClass = ButtonGroup.CLASS_NAMES.SELECTED;",""," Y.Array.each(selected, function(node){"," if (node.hasClass(selectedClass)){"," value = node.getContent();"," values.push(value);"," }"," });",""," return values;"," },",""," /**"," * @method _handleClick"," * @description A delegated click handler for when any button is clicked in the content box"," * @param e {Object} An event object"," * @private"," */"," _handleClick: function(e){"," var group = this,"," clickedNode = e.target.ancestor('.' + ButtonGroup.CLASS_NAMES.BUTTON, true),"," type = group.get('type'),"," selectedClass = ButtonGroup.CLASS_NAMES.SELECTED,"," isSelected = clickedNode.hasClass(selectedClass),"," buttons;",""," // TODO: Anything for 'push' groups?",""," if (type === 'checkbox') {"," clickedNode.toggleClass(selectedClass, !isSelected);"," /**"," * @event selectionChange"," * @description fires when any button in the group changes its checked status"," * @param {Event} the event object. It contains an \"originEvent\" property"," * linking to the original DOM event that triggered the selection change"," */"," group.fire('selectionChange', {originEvent: e});"," }"," else if (type === 'radio') {"," if (!isSelected) {"," buttons = group.getButtons(); // Todo: getSelectedButtons()? Need it to return an arraylist then."," buttons.removeClass(selectedClass);"," clickedNode.addClass(selectedClass);"," group.fire('selectionChange', {originEvent: e});"," }"," }"," }","","}, {"," // Y.ButtonGroup static properties",""," /**"," * The identity of the widget."," *"," * @property NAME"," * @type {String}"," * @default 'buttongroup'"," * @readOnly"," * @protected"," * @static"," */"," NAME: 'buttongroup',",""," /**"," * Static property used to define the default attribute configuration of"," * the Widget."," *"," * @property ATTRS"," * @type {Object}"," * @protected"," * @static"," */"," ATTRS: {"," type: {"," writeOnce: 'initOnly',"," value: 'radio'"," }"," },",""," /**"," * List of class names to use for ButtonGroups"," *"," * @property CLASS_NAMES"," * @type {Object}"," * @static"," */"," CLASS_NAMES: CLASS_NAMES,"," "," /**"," * Selector used to find buttons inside a ButtonGroup"," * @type {String}"," */"," BUTTON_SELECTOR: \"button, input[type=button], input[type=reset], input[type=submit], input[type=radio], input[type=checkbox]\"","});","","","}, '3.9.0pr1', {\"requires\": [\"button-plugin\", \"cssbutton\", \"widget\"]});"]; 31_yuitest_coverage["build/button-group/button-group.js"].lines = {"1":0,"10":0,"22":0,"23":0,"27":0,"35":0,"44":0,"47":0,"56":0,"58":0,"67":0,"72":0,"73":0,"74":0,"78":0,"87":0,"93":0,"94":0,"95":0,"96":0,"100":0,"110":0,"119":0,"120":0,"127":0,"129":0,"130":0,"131":0,"132":0,"133":0,"134":0}; 62_yuitest_coverline("build/button-group/button-group.js", 23); 63ButtonGroup.superclass.constructor.apply(this, arguments); 64} 77_yuitest_coverline("build/button-group/button-group.js", 35); 78this.getButtons().plug(Y.Plugin.Button); 79 }, 88_yuitest_coverline("build/button-group/button-group.js", 44); 89var group = this, 90 cb = group.get(CONTENT_BOX); 97 * @method getButtons 98 * @description Returns all buttons inside this this button group 99 * @publiccheck-radio.js https://github.com/leosamu/cartagen.git | JavaScript | 340 lines
45 // Using checkbox/radio groups will generally be easier and more flexible than 46 // using individual checkbox and radio controls, but this shows that you can 47 // certainly do so if you only need a single control, or if you want to control 196 // You can pass sub-item arrays along with width/columnWidth configs 197 // ColumnLayout-style for complete layout control. In this example we 198 // only want one item in the middle column, which would not be possible 198 // only want one item in the middle column, which would not be possible 199 // using the columns config. We also want to make sure that our headings 200 // end up at the top of each column as expected.event-delegate.js https://bitbucket.org/Quartermain/yui3.git | JavaScript | 322 lines
46 * event or a function to test target and its parents for a match 47 * @param context optional argument that specifies what 'this' refers to. 48 * @param args* 0..n additional arguments to pass on to the callback function. 172 173 ret = this.fn.apply(this.context || e.currentTarget, args); 174 238 // passing target as the first arg rather than leaving well enough alone 239 // making 'this' in the filter function refer to the target. This is to 240 // support bound filter functions. 289 * will use a supplied filter to test if the callback should be executed. 290 * This filter can be either a selector string or a function that returns 291 * a Node to use as the currentTarget for the event. 312 * event or a function that returns a Node or false. 313 * @param context optional argument that specifies what 'this' refers to. 314 * @param args* 0..n additional arguments to pass on to the callback function.data-table.js https://gitlab.com/yutiansut/dc.js | JavaScript | 419 lines
6 * keying function for {@link https://github.com/mbostock/d3/wiki/Arrays#-nest nesting} the data 7 * together in groups. Do not pass in a crossfilter group as this will not work. 8 * 8 * 9 * Another interesting feature of the data table is that you can pass a crossfilter group to the `dimension`, as 10 * long as you specify the {@link dc.dataTable#order order} as `d3.descending`, since the data 10 * long as you specify the {@link dc.dataTable#order order} as `d3.descending`, since the data 11 * table will use `dimension.top()` to fetch the data in that case, and the method is equally 12 * supported on the crossfilter group as the crossfilter dimension. 23 * a dom block element such as a div; or a dom element or d3 selection. 24 * @param {String} [chartGroup] - The name of the chart group this chart instance should be placed in. 25 * Interaction with a chart will only trigger events and redraws within the chart's group. 99 // If all 'functions' are used, then don't remove/add a header, and leave 100 // the html alone. This preserves the functionality of earlier releases. 101 // A 2nd option is a string representing a field in the data.textinput.js https://bitbucket.org/29decibel/gollum.git | JavaScript | 380 lines
7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are met: 9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright 10 * notice, this list of conditions and the following disclaimer. 11 * * Redistributions in binary form must reproduce the above copyright 11 * * Redistributions in binary form must reproduce the above copyright 12 * notice, this list of conditions and the following disclaimer in the 13 * documentation and/or other materials provided with the distribution. 15 * names of its contributors may be used to endorse or promote products 16 * derived from this software without specific prior written permission. 17 * 17 * 18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 19 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIEDcrossroads.js https://gitlab.com/Blueprint-Marketing/cdnjs | JavaScript | 357 lines
155 this._pattern = pattern; 156 this._paramsIds = isRegexPattern? null : patternLexer.getParamIds(this._pattern); 157 this._optionalParamsIds = isRegexPattern? null : patternLexer.getOptionalParamsIds(this._pattern); 226 } else { 227 params = patternLexer.getParamValues(request, this._matchRegexp, this._router.shouldTypecast); 228 } 232 dispose : function(){ 233 this._router.removeRoute(this); 234 }, 237 this.matched.dispose(); 238 this.matched = this._pattern = this._matchRegexp = null; 239 }, 241 toString : function(){ 242 return '[Route pattern:"'+ this._pattern +'", numListeners:'+ this.matched.getNumListeners() +']'; 243 }jquery.fileupload-image.js https://gitlab.com/Blueprint-Marketing/cdnjs | JavaScript | 315 lines
151 } 152 var that = this, 153 file = data.files[data.index], 164 } 165 dfd.resolveWith(that, [data]); 166 }, 183 options = $.extend({canvas: true}, options); 184 var that = this, 185 dfd = $.Deferred(), 227 } 228 var that = this, 229 file = data.files[data.index], 265 } 266 var that = this, 267 dfd = $.Deferred();Collection.js https://gitlab.com/Mr.Tomato/leanote | JavaScript | 430 lines
75 /** 76 * Sets the contents of the collection. This will remove any existing items 77 * and replace them with the ones specified in the input array. 149 eq: function(index) { 150 return index === -1 ? this.slice(index) : this.slice(index, +index + 1); 151 }, 183 indexOf: function(ctrl) { 184 var self = this, i = self.length; 185 212 hasClass: function(cls) { 213 return this[0] ? this[0].hasClass(cls) : false; 214 }, 405 406 this.each(function(ctrl) { 407 if (name in ctrl) {animate.js https://gitlab.com/geo85/Hotspot | JavaScript | 583 lines
21 22 Please note that the above license covers only this plugin. It by all means does 23 not apply to any other amCharts products that are covered by different licenses. 78 Tween.prototype.interpolate = function (time) { 79 this._object[this._key] = tween(time, this._from, this._to); 80 }; 119 if (diff < this._duration) { 120 this._tick(diff / this._duration); 121 return false; 260 261 // This ensures that a key is only added once 262 function addKey(keys, seen, key) { 369 if (axes[axis.id] == null) { 370 // This saves the old minimum / maximum so that we can restore it after the animation is complete 371 axes[axis.id] = {jquery.wijmo.wijdropdown.js https://bitbucket.org/lexxx233/phegenex.git | JavaScript | 501 lines
40 this._activeItem = null; 41 this._applySelect(this.element); 42 }, 85 self.element.children().each(function () {//this.element 86 var $chilren = $(this), $item, $items, $list, $text; 87 if ($chilren.is("option")) { 295 _hide: function () { 296 var self = this, 297 hidingAnimation = self.options.hidingAnimation, 438 .filter(function () { 439 var close = $(this).offset().top - base - height + $(this).height(), 440 lineheight = $(this).height(); 463 .filter(function () { 464 var close = $(this).offset().top - base + height - $(this).height(), 465 lineheight = $(this).height();fps.js https://github.com/akesling/chromium.git | JavaScript | 468 lines
226 this.colorMaterial_ = pack.createObject('Material'); 227 this.colorMaterial_.effect = this.colorEffect_; 228 this.colorMaterial_.drawList = this.viewInfo.zOrderedDrawList; 351 // Keep the total time and total active time for the last N frames. 352 this.totalTime_ += elapsedTime - this.timeTable_[this.timeTableCursor_]; 353 this.totalActiveTime_ += 357 this.timeTable_[this.timeTableCursor_] = elapsedTime; 358 this.activeTimeTable_[this.timeTableCursor_] = activeTime; 359 395 this.perfBar_.setColor(o3djs.fps.PERF_BAR_COLORS[colorIndex]); 396 this.perfBar_.setSize(frames * this.perfBarWidth_ / this.numPerfBars_, 397 this.perfBarHeight_); 435 this.transform_.identity(); 436 this.transform_.translate(this.x_, this.y_, this.z_); 437 this.transform_.scale(this.width_, this.height_, 1);uri.js https://github.com/kisg/v8mips.git | JavaScript | 415 lines
2// Redistribution and use in source and binary forms, with or without 3// modification, are permitted provided that the following conditions are 4// met: 6// * Redistributions of source code must retain the above copyright 7// notice, this list of conditions and the following disclaimer. 8// * Redistributions in binary form must reproduce the above 8// * Redistributions in binary form must reproduce the above 9// copyright notice, this list of conditions and the following 10// disclaimer in the documentation and/or other materials provided 13// contributors may be used to endorse or promote products derived 14// from this software without specific prior written permission. 15// 15// 16// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 17// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOTvec4.js https://gitlab.com/brian0218/rk3188_rk3066_r-box_android4.4.2_sdk | JavaScript | 486 lines
3Redistribution and use in source and binary forms, with or without modification, 4are permitted provided that the following conditions are met: 5 5 6 * Redistributions of source code must retain the above copyright notice, this 7 list of conditions and the following disclaimer. 8 * Redistributions in binary form must reproduce the above copyright notice, 9 this list of conditions and the following disclaimer in the documentation 10 and/or other materials provided with the distribution. 11 12THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 13ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 20(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 21SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */mongo_client.js https://gitlab.com/galgaldot54/Arrow | JavaScript | 328 lines
16/** 17 * @fileOverview The **MongoClient** class is a class that allows for making Connections to MongoDB. 18 * 48 * 49 * Note that for replicasets the replicaSet query parameter is required in the 2.0 driver 50 * 62 */ 63 this.connect = MongoClient.connect; 64} 72 * 73 * Note that for replicasets the replicaSet query parameter is required in the 2.0 driver 74 *paletterenderer.js https://github.com/illandril/box2dweb-closure.git | JavaScript | 318 lines
3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 55goog.ui.PaletteRenderer = function() { 56 goog.ui.ControlRenderer.call(this); 57}; 62/** 63 * Globally unique ID sequence for cells rendered by this renderer class. 64 * @type {number} 71 * Default CSS class to be applied to the root element of components rendered 72 * by this renderer. 73 * @type {string} 85goog.ui.PaletteRenderer.prototype.createDom = function(palette) { 86 var classNames = this.getClassNames(palette); 87 return palette.getDomHelper().createDom(editor.es6.js https://gitlab.com/mohamed_hussein/prodt | JavaScript | 335 lines
41 } 42 // Otherwise, ensure XSS safety: let the server XSS filter this value. 43 else { 121 122 // When changing to a text format that has a text editor associated 123 // with it that supports content filtering, then first ask for 132 const message = Drupal.t( 133 'Changing the text format to %text_format will permanently remove content that is not allowed in that text format.<br><br>Save your changes before switching the text format to avoid losing data.', 134 { 225 } 226 // When there is no text editor for this text format, still track 227 // changes, because the user has the ability to switch to some text 289 * @param {object} format 290 * The text format that's being activated, from 291 * drupalSettings.editor.formats.yiui.js https://github.com/Kevnz/YiUI.git | JavaScript | 308 lines
56 if(node.get('href').indexOf('#') > 0){ 57 node.on('click', this._followAnchor, this) 58 } 59 60 },this); 61 currentPage = { 70 e.preventDefault(); 71 Y.log('follow that anchor'); 72 var link = e.currentTarget; 163 Outside callers should use this version to do an ajax load programmatically 164 from your webapp. In a future version, this will be renamed to 165 `showPageByHref()` (once the old method and all its calls are renamed). 259 property: busy 260 This is set to `true` if a slide animation is in progress. 261 */Measure.js https://github.com/aabt/openlayers.git | JavaScript | 377 lines
125 } 126 this.callbacks = OpenLayers.Util.extend(callbacks, this.callbacks); 127 132 ); 133 this.handler = new handler(this, this.callbacks, this.handlerOptions); 134 }, 179 } 180 this.handler = new handler(this, this.callbacks, options); 181 if(active) { 285 getBestArea: function(geometry) { 286 var units = this.displaySystemUnits[this.displaySystem]; 287 var unit, area; 336 getBestLength: function(geometry) { 337 var units = this.displaySystemUnits[this.displaySystem]; 338 var unit, length;core.js https://github.com/UweFuchs/scenejs.git | JavaScript | 370 lines
4var SceneJS_Map = function() { 5 this.items = []; 6 this.lastUniqueId = 0; 7 8 this.addItem = function() { 9 var item; 12 item = arguments[1]; 13 if (this.items[id]) { // Won't happen if given ID is string 14 throw SceneJS_errorModule.fatalError(SceneJS.errors.ID_CLASH, "ID clash: '" + id + "'"); 15 } 16 this.items[id] = item; 17 return id; 20 item = arguments[0]; 21 var findId = this.lastUniqueId++ ; 22 if (!this.items[findId]) {jquery.ui.button.js https://bitbucket.org/posportteam/posport.git | JavaScript | 419 lines
70 71 var that = this, 72 options = this.options, 77 if ( options.label === null ) { 78 options.label = (this.type === "input" ? this.buttonElement.val() : this.buttonElement.html()); 79 } 195 // focus between keydown and keyup, it would be left in an "active" state 196 .bind( "keyup" + this.eventNamespace + " blur" + this.eventNamespace, function() { 197 $( this ).removeClass( "ui-state-active" ); 287 //See #8237 & #8828 288 var isDisabled = this.element.is( "input, button" ) ? this.element.is( ":disabled" ) : this.element.hasClass( "ui-button-disabled" ); 289 386 387 this.buttons = this.element.find( this.options.items ) 388 .filter( ":ui-button" )MPlacement.js https://github.com/Wkasel/qooxdoo.git | JavaScript | 527 lines
326 // Bind target and livupdate to placeToWidget 327 this.__ptwLiveUpdater = qx.lang.Function.bind(this.placeToWidget, this, target, false); 328 336 337 this.addListener("disappear", this.__ptwLiveUpdateDisappearListener, this); 338 355 if (this.__ptwLiveUpdateDisappearListener){ 356 this.removeListener("disappear", this.__ptwLiveUpdateDisappearListener, this); 357 this.__ptwLiveUpdateDisappearListener = null; 407 // Bind target and livupdate to placeToWidget 408 this.__ptwLiveUpdater = qx.lang.Function.bind(this.placeToElement, this, elem, false); 409 498 * 499 * @param coords {Map} Location of the object to align the this to. This map 500 * should have the keys <code>left</code>, <code>top</code>, <code>right</code>autosave.dev.js https://github.com/muskmelon/Greemo.git | JavaScript | 306 lines
17 $(':button, :submit', '#submitpost').each(function(){ 18 var t = $(this); 19 if ( t.hasClass('button-primary') ) 23 }); 24 if ( $(this).attr('id') == 'publish' ) 25 $('#ajax-loading').css('visibility', 'visible'); 66 67 // This code is meant to allow tabbing from Title to Post if tinyMCE is defined. 68 if ( typeof tinyMCE != 'undefined' ) { 84 $('#title').blur( function() { 85 if ( !this.value || $('#auto_draft').val() != '1' ) 86 return; 222 jQuery('.tags-input').each( function() { 223 post_data[this.name] = this.value; 224 } );jsonp.js https://github.com/illandril/box2dweb-closure.git | JavaScript | 379 lines
27 * 28 * This script works in all browsers that are currently supported by 29 * the Google Maps API, which is IE 6.0+, Firefox 0.8+, Safari 1.2.4+, 76 /** 77 * This is the callback parameter name that is added to the uri. 78 * @type {string} 137 * errorCallback is specified and the reply does not arrive within the 138 * timeout period set on this channel, the errorCallback is invoked 139 * with the original payload. 164 * 165 * @return {Object} A request descriptor that may be used to cancel this 166 * transmission, or null, if the message may not be cancelled. 174 175 // This is a safeguard that we don't accidentally call appendChild 176 // on a null.menu.js https://github.com/albertobraschi/SuperSweetAdmin.git | JavaScript | 537 lines
511 this.ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)); 512 this.ie3 = (this.ie && (this.major < 4)); 513 this.ie4 = (this.ie && (this.major == 4) && (agt.indexOf("msie 4")!=-1) ); 514 this.ie4up = (this.ie && (this.major >= 4)); 515 this.ie5 = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.0")!=-1) ); 516 this.ie5_5 = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.5") !=-1)); 516 this.ie5_5 = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.5") !=-1)); 517 this.ie5up = (this.ie && !this.ie3 && !this.ie4); 518 518 519 this.ie5_5up =(this.ie && !this.ie3 && !this.ie4 && !this.ie5); 520 this.ie6 = (this.ie && (this.major == 4) && (agt.indexOf("msie 6.")!=-1) ); 520 this.ie6 = (this.ie && (this.major == 4) && (agt.indexOf("msie 6.")!=-1) ); 521 this.ie6up = (this.ie && !this.ie3 && !this.ie4 && !this.ie5 && !this.ie5_5); 522mambojavascript.js https://github.com/Shigaru/shigaru.git | JavaScript | 542 lines
433 this.ie5=(this.ver.indexOf("MSIE 5")<-1 && this.dom && !this.opera5)?1:0; 434 this.ie6=(this.ver.indexOf("MSIE 6")<-1 && this.dom && !this.opera5)?1:0; 435 this.ie4=(document.all && !this.dom && !this.opera5)?1:0; 435 this.ie4=(document.all && !this.dom && !this.opera5)?1:0; 436 this.ie=this.ie4||this.ie5||this.ie6 437 this.mac=this.agent.indexOf("Mac")<-1 437 this.mac=this.agent.indexOf("Mac")<-1 438 this.ns6=(this.dom && parseInt(this.ver) <= 5) ?1:0; 439 this.ns4=(document.layers && !this.dom)?1:0; 439 this.ns4=(document.layers && !this.dom)?1:0; 440 this.bw=(this.ie6||this.ie5||this.ie4||this.ns4||this.ns6||this.opera5); 441 462 if (this.activeTab) { 463 this.setElemStyle( this.activeTab, this.offTabStyle ); 464 page = this.activeTab.replace( 'tab', 'page' );fixture.js https://github.com/retro/HibreedCMS.git | JavaScript | 514 lines
27 $.ajax will look in <code>fixtures/tasks.json</code>. 28 It's expected that a static <code>fixtures/tasks.json</code> 29 file exists relative to the current page. 38<h2>Using Fixtures</h2> 39To enable fixtures, you must add this plugin to your page and 40set the fixture property. 88// looks in fixtures/tasks1.json relative to jmvc root 89// this assumes you are using steal 90$.ajax({type:"get", 98<h3>Dynamic Fixtures</h3> 99<p>Dynamic Fixtures are functions that return the arguments the $.ajax callbacks 100 (<code>beforeSend</code>, <code>success</code>, <code>complete</code>, 146Dynamic fixtures are awesome for performance testing. Want to see what 14710000 files does to your app's performance? Make a fixture that returns 10000 items. 148jquery.meanmenu.js https://gitlab.com/omarfaruk/Web_App_Develop_CRUD | JavaScript | 285 lines
6/* 7* This program is free software: you can redistribute it and/or modify 8* it under the terms of the GNU General Public License as published by 11* 12* THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT 13* HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, 14* INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR 15* FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE 16* OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, 21* You should have received a copy of the GNU General Public License 22* along with this program. If not, see <http://gnu.org/licenses/>. 23* 30 var defaults = { 31 meanMenuTarget: jQuery(this), // Target the current HTML markup you wish to replace 32 meanMenuContainer: '.mobile-menu-area .container', // Choose where meanmenu will be placed within the HTMLgallery-md-timespinner-debug.js https://github.com/nonano/yui3-gallery.git | JavaScript | 461 lines
130 131 this._hourSp = this._spFact(HOURS, this.get(SHOW_AMPM)?{min:1,max:12}:{max:23}, cbx); 132 this._minSp = this._spFact(MINUTES, null, cbx); 143 this._minSp.after(VALUE + CHANGE, this._afterValueChange, this), 144 this._minSp.after(WRAPPED, this._afterWrapped, this) 145 ]; 175 this._secSp.after(VALUE + CHANGE, this._afterValueChange, this), 176 this._secSp.after(WRAPPED, this._afterWrapped, this) 177 ]; 213 (this._secSp?this._secSp.get(BBX):this._minSp.get(BBX)).insert(this._ampmSp.get(BBX), AFTER); 214 this._ampmEventHandle = this._ampmSp.after(VALUE + CHANGE, this._afterValueChange, this); 215 this._hourSp.setAttrs({ 297 var d = new Date(); 298 d.setHours((this._hourSp.get(VALUE) + (this._ampmSp? 12 * this._ampmSp.get(VALUE):0)) % 24); 299 d.setMinutes(this._minSp.get(VALUE));iphone.js https://github.com/tornak47/apf.git | JavaScript | 350 lines
9 * 10 * This software is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * You should have received a copy of the GNU Lesser General Public 16 * License along with this software; if not, write to the Free 17 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 159 if (typeof this.onmousedown == "function") { 160 this.onmousedown(e); 161 if (this != document) 170 if (typeof this.onmousemove == "function") { 171 this.onmousemove(e); 172 if (this != document) 188 $setTimeout(function() { _touching = false; }); 189 if (typeof this.onmouseup == "function") { 190 this.onmouseup(e);CookieItemsView.js https://github.com/weissms/owb-mirror.git | JavaScript | 303 lines
38 this.deleteButton.visible = false; 39 this.deleteButton.addEventListener("click", this._deleteButtonClicked.bind(this), false); 40 41 this.refreshButton = new WebInspector.StatusBarButton(WebInspector.UIString("Refresh"), "refresh-storage-status-bar-item"); 42 this.refreshButton.addEventListener("click", this._refreshButtonClicked.bind(this), false); 43 169 this._dataGrid = new WebInspector.DataGrid(columns, null, this._deleteCookieCallback.bind(this)); 170 this._dataGrid.addEventListener("sorting changed", this._populateDataGrid, this); 171 this.element.appendChild(this._dataGrid.element); 283 { 284 if (!this._dataGrid || !this._dataGrid.selectedNode) 285 return; 286 287 this._deleteCookieCallback(this._dataGrid.selectedNode); 288 },iframe-transport.js https://bitbucket.org/pastor399/newcastleunifc.git | JavaScript | 237 lines
22// $.ajax(this.action, { 23// files: $(":file", this), 24// iframe: true 70 71// Another problem with using an `iframe` for file uploads is that it is 72// impossible for the javascript code to determine the HTTP status code of the 95 96 // Register a prefilter that checks whether the `iframe` option is set, and 97 // switches to the "iframe" data type if it is `true`. 114 115 // This function gets called after a successful submission or an abortion 116 // and should revert all changes made to the page to enable the 195 var doc = this.contentWindow ? this.contentWindow.document : 196 (this.contentDocument ? this.contentDocument : this.document), 197 root = doc.documentElement ? doc.documentElement : doc.body,item-view.spec.js https://gitlab.com/CodeYellowBV/backbone.marionette | JavaScript | 431 lines
10 this.template = 'foobar'; 11 this.templateStub = this.sinon.stub().returns(this.template); 12 }); 37 this.marionetteRendererSpy = this.sinon.spy(Marionette.Renderer, 'render'); 38 this.triggerSpy = this.sinon.spy(this.view, 'trigger'); 39 this.serializeDataSpy = this.sinon.spy(this.view, 'serializeData'); 207 208 this.serializeDataSpy = this.sinon.spy(this.view, 'serializeData'); 209 this.view.render(); 244 245 this.removeSpy = this.sinon.spy(this.view, 'remove'); 246 this.stopListeningSpy = this.sinon.spy(this.view, 'stopListening'); 246 this.stopListeningSpy = this.sinon.spy(this.view, 'stopListening'); 247 this.triggerSpy = this.sinon.spy(this.view, 'trigger'); 248scripts.js https://gitlab.com/vladRakin/javascriptmvc-site | JavaScript | 386 lines
21 22 // packages that can be compressed somewhere 23 packages = {}, 77 78 // get the package, this will be production.js 79 var pack = stl['pack'];jQRangeSliderLabel.js https://gitlab.com/Mirros/cdnjs | JavaScript | 420 lines
155 156 this._positionner = new LabelPositioner(this.element, label, this.widgetName, { 157 show: this.options.show, 191 this.options = options; 192 this.handle1 = this.label1[this.type]("option", "handle"); 193 this.handle2 = this.label2[this.type]("option", "handle"); 243 this.CacheHeight(this.label2, this.cache.label2); 244 this.CacheWidth(this.label1.offsetParent(), this.cache.offsetParent); 245 } 346 this.ShowIfNecessary = function(){ 347 if (this.options.show === "show" ||Â this.moving || !this.initialized || this.updating) return; 348 356 this.label1.stop(true, true).delay(this.options.delayOut || 0).fadeOut(this.options.durationOut || 0); 357 this.label2.stop(true, true).delay(this.options.delayOut || 0).fadeOut(this.options.durationOut || 0); 358 this.moving = false;CSS.js https://gitlab.com/Mirros/cdnjs | JavaScript | 297 lines
1/* 2This file is part of Ext JS 4.2 3 8GNU General Public License Usage 9This file may be used under the terms of the GNU General Public License version 3.0 as 10published by the Free Software Foundation and appearing in the file LICENSE included in the 10published by the Free Software Foundation and appearing in the file LICENSE included in the 11packaging of this file. 12 41 // Cache a reference to the singleton 42 CSS = this; 43 }, 157 // IE<8 does not keep a reference to parentStyleSheet in the rule, so we 158 // must cache an object like this until IE<8 is deprecated. 159 rules[Ext.String.trim(selectorText[j]).toLowerCase()] = {signature_pad.js https://gitlab.com/Blueprint-Marketing/cdnjs | JavaScript | 340 lines
85 var ctx = this._ctx, 86 dotSize = typeof(this.dotSize) === 'function' ? this.dotSize() : this.dotSize; 87 164 this._lastVelocity = 0; 165 this._lastWidth = (this.minWidth + this.maxWidth) / 2; 166 this._isEmpty = true; 296 Point.prototype.velocityFrom = function (start) { 297 return (this.time !== start.time) ? this.distanceTo(start) / (this.time - start.time) : 1; 298 }; 300 Point.prototype.distanceTo = function (start) { 301 return Math.sqrt(Math.pow(this.x - start.x, 2) + Math.pow(this.y - start.y, 2)); 302 }; 319 cx = this._point(t, this.startPoint.x, this.control1.x, this.control2.x, this.endPoint.x); 320 cy = this._point(t, this.startPoint.y, this.control1.y, this.control2.y, this.endPoint.y); 321 if (i > 0) {restangular.js https://gitlab.com/Blueprint-Marketing/cdnjs | JavaScript | 269 lines
61 this.setRestangularFields = function(resFields) { 62 this.restangularFields = _.extend(this.restangularFields, resFields); 63 } 83 * This is the Path URL creator. It uses Path to show Hierarchy in the Rest API. 84 * This means that if you have an Account that then has a set of Buildings, a URL to a building 85 * would be /accounts/123/buildings/456 134 this.$get = ['$resource', '$q', function($resource, $q) { 135 var urlHandler = new urlCreatorFactory[this.urlCreator](this.baseUrl, this.restangularFields); 136 var __extraFields = this.extraFields; 186 function elemFunction(operation, params, obj, headers) { 187 var __this = this; 188 var deferred = $q.defer(); 195 if (operation !== "post") { 196 deferred.resolve(restangularize(__this[__restangularFields.parentResource], elem, __this[__restangularFields.route])); 197 } else {compiler.js https://github.com/fusesource/coffeejade.git | JavaScript | 501 lines
151 this.lastBuffered += str; 152 this.buf[this.lastBufferedIdx - 1] = this.indented("__.buf.push('" + this.lastBuffered + "')"); 153 } else { 224 225 if (this.doctype) this.buffer(this.doctype); 226 this.hasCompiledDoctype = true; 297 if (this.pp && !~inlineTags.indexOf(name) && !tag.textOnly) { 298 this.buffer('\\n' + Array(this.indents).join(' ')); 299 } 324 if (filter.isASTFilter) { 325 this.p(fn(filter.block, this, filter.attrs)); 326 } else { 354 if (!comment.buffer) return; 355 if (this.pp) this.buffer('\\n' + Array(this.indents + 1).join(' ')); 356 this.buffer('<!--' + utils.escape(comment.val) + '-->');dom.js https://gitlab.com/xivo.solutions/xivo-web-interface | JavaScript | 591 lines
4 * 5 * This program is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * You should have received a copy of the GNU General Public License 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 */Inflector.js https://gitlab.com/knax/extjs | JavaScript | 300 lines
28 * Each rule consists of two items - a regular expression that matches one or more rules, and a replacement string. In 29 * this case, the regular expression will only match the string "ox", and will replace that match with "oxen". Here's 30 * how we could add the inverse rule: 46 * The registered plural tuples. Each item in the array should contain two items - the first must be a regular 47 * expression that matchers the singular form of a word, the second must be a String that replaces the matched 48 * part of the regular expression. This is managed by the {@link #plural} method. 76 * The set of registered singular matchers. Each item in the array should contain two items - the first must be a 77 * regular expression that matches the plural form of a word, the second must be a String that replaces the 78 * matched part of the regular expression. This is managed by the {@link #singular} method. 145 plural: function(matcher, replacer) { 146 this.plurals.unshift([matcher, replacer]); 147 }, 159 clearPlurals: function() { 160 this.plurals = []; 161 },ResizeTracker.js https://gitlab.com/knax/extjs | JavaScript | 337 lines
62 // record the startBox 63 this.startBox = this.target.getBox(); 64 }, 111 // returns the Ext.ResizeHandle that the user started dragging 112 this.activeResizeHandle = Ext.get(this.getDragTarget().id); 113 121 // dynamic resizing, update dimensions during resize 122 if (this.dynamic || this.proxy) { 123 this.updateDimensions(e); 271 // Basically what edge we are dragging, a horizontal edge or a vertical edge. 272 dragRatio = Math.abs(oppositeCorner[0] - this.lastXY[0]) / Math.abs(oppositeCorner[1] - this.lastXY[1]); 273 328 this.updateDimensions(e, true); 329 if (this.proxy && this.hideProxy) { 330 this.proxy.hide();html_sanitizer.js https://gitlab.com/zlitz/wiki | JavaScript | 265 lines
4 * 5 * Use of this source code is governed by an MIT-style license that can be 6 * found in the LICENSE file at https://angular.io/license 10import { sanitizeSrcset, sanitizeUrl } from './url_sanitizer'; 11/** A <body> element that can be safely used to parse untrusted HTML. Lazily initialized below. */ 12var inertElement = null; 103 this.sanitizedSomething = false; 104 this.buf = []; 105 } 140 SanitizingHtmlSerializer.prototype.startElement = function (element) { 141 var _this = this; 142 var tagName = DOM.nodeName(element).toLowerCase(); 204 * 205 * This is undesirable since we don't want to allow any of these custom attributes. This method 206 * strips them all.view_unbilled_deliveries.js https://gitlab.com/Prajkta_Patkar/gkwebapp | JavaScript | 338 lines
2Copyright (C) 2013, 2014, 2015, 2016 Digital Freedom Foundation 3 This file is part of GNUKhata:A modular,robust and Free Accounting System. 4 9 10 GNUKhata is distributed in the hope that it will be useful, but 11 WITHOUT ANY WARRANTY; without even the implied warranty of 100 $("#del_unbilled_date").blur(function(event) { // padding 0's on blur 101 $(this).val(pad($(this).val(),2)); 102 }); 103 $("#del_unbilled_month").blur(function(event) { // padding 0's on blur 104 $(this).val(pad($(this).val(),2)); 105 }); 106 $("#del_unbilled_year").blur(function(event) { // padding 20 or 200 on blur 107 $(this).val(yearpad($(this).val(),4)); 108 });vows-test.js https://github.com/kimo/vows.git | JavaScript | 374 lines
81 topic: function (stat) { 82 fs.open(__dirname + '/vows-test.js', "r", stat.mode, this.callback); 83 }, 205 topic: function () { 206 var that = this; 207 process.nextTick(function () { 244 topic: function () { 245 this.callback.call({ boo: true }, null, 'hello'); 246 }, 320vows.describe("Vows with a single batch", { 321 "This is a batch that's added as the optional parameter to describe()": { 322 topic: true, 362 topic: function (topic) { 363 var that = this; 364 process.nextTick(function () {main.js https://bitbucket.org/phalgun/amarok-nepomuk.git | JavaScript | 252 lines
16* * 17* This program is distributed in the hope that it will be useful, * 18* but WITHOUT ANY WARRANTY; without even the implied warranty of * 31/* GLOBAL VARIABLES */ 32// template for the xml object that will be populated and passed to Amarok.Lyrics.showLyrics() 33XML = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?><lyric artist=\"{artist}\" title=\"{title}\">{lyrics}</lyric>"; 34// if we change variable xml it will not reinitialized on next lyrics request, so we will get lyrics from previous song 35// because of that we need temp variable 36NEWXML = ""; 43TITLE = ""; 44// the error message that is displayed if no lyrics were found or there was an error while trying to fetch them 45ERRORMSG = "Lyrics not found. Sorry."; 73 var url = QUrl.fromEncoded( new QByteArray( APIURL + capture[1] ), 1); 74 // this zero will not allow to execute this function again 75 new Downloader( url, new Function("response", "onLyricsReceived(response, 0)") );mongos.js https://bitbucket.org/WarrenFNS/epsconnect.git | JavaScript | 316 lines
26 // Set default connection pool options 27 this.socketOptions = this.options.socketOptions != null ? this.options.socketOptions : {}; 28 // Enabled ha 28 // Enabled ha 29 this.haEnabled = this.options['ha'] == null ? true : this.options['ha']; 30 // How often are we checking for new servers in the replicaset 30 // How often are we checking for new servers in the replicaset 31 this.mongosStatusCheckInterval = this.options['haInterval'] == null ? 2000 : this.options['haInterval']; 32 // Save all the server connections 75 // Number of total servers that need to initialized (known servers) 76 this._numberOfServersLeftToInitialize = this.servers.length; 77 // Default to the first proxy server as the first one to use 278 // No current mongo, just pick first server 279 if(this._currentMongos == null && this.servers.length > 0) { 280 return this.servers[0].checkoutReader();ext-searchbox.js https://bitbucket.org/lbesson/web-sphinx-scripts.git | JavaScript | 353 lines
276 this.replace = function() { 277 this.editor.replace(this.replaceInput.value); 278 this.findNext(); 280 this.replaceAll = function() { 281 this.editor.replaceAll(this.replaceInput.value); 282 }; 313exports.ISearch = function(session, options) { 314 this.$changeListener = this.$changeListener.bind(this); 315 this.startRange = session.selection.toOrientedRange(); 321 if (this.session) { 322 this.session.removeListener(this.$changeListener); 323 } 341 this.$edgeBefore = function() { 342 this.cursor = this.startRange[this.options.backwards ? "start" : "end"]; 343 };date.js https://github.com/luser/socorro.git | JavaScript | 467 lines
144 add("isWeekend", function() { 145 return this.getDay()==0 || this.getDay()==6; 146 }); 279 add("addYears", function(num) { 280 this.setFullYear(this.getFullYear() + num); 281 return this; 336 add("addHours", function(num) { 337 this.setHours(this.getHours() + num); 338 return this; 353 add("addMinutes", function(num) { 354 this.setMinutes(this.getMinutes() + num); 355 return this; 370 add("addSeconds", function(num) { 371 this.setSeconds(this.getSeconds() + num); 372 return this;jsface.js https://gitlab.com/Mirros/cdnjs | JavaScript | 280 lines
97 // If the object is on the prototype, not an object, or is already frozen, 98 // skip it. Note that this might leave an unfrozen reference somewhere in the 99 // object if there is an already frozen object containing an unfrozen object. 238 // in an environment where there are a lot of class creating/removing (rarely) 239 // this implementation might cause a leak (saving pointers to clazz and $ready) 240 if ( !loop && functionOrNil(r)) { 279 } 280})(this, "object", "number", "length", Object.prototype.toString, [], 0); 281foundation.interchange.js https://gitlab.com/Mirros/cdnjs | JavaScript | 354 lines
121 122 if (!this.images_loaded || !this.nodes_loaded) { 123 setTimeout($.proxy(this.resize, this), 50); 240 while (i--) { 241 this.object($(this['cached_' + type][i])); 242 } 272 273 return [this.trim(path), this.convert_directive(directive), this.trim(media_query)]; 274 }, 319 if (this.namespace.length > 0) { 320 return this.namespace + '-' + this.settings.load_attr; 321 } 326 if (this.namespace.length > 0) { 327 return 'data-' + this.namespace + '-' + this.settings.load_attr; 328 }bootstrap-tooltip.js https://gitlab.com/Mirros/cdnjs | JavaScript | 353 lines
54 if (trigger == 'click') { 55 this.$element.on('click.' + this.type, this.options.selector, $.proxy(this.toggle, this)) 56 } else if (trigger != 'manual') { 59 this.$element.on(eventIn + '.' + this.type, this.options.selector, $.proxy(this.enter, this)) 60 this.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this)) 61 } 275 , tip: function () { 276 return this.$tip = this.$tip || $(this.options.template) 277 } 279 , arrow: function(){ 280 return this.$arrow = this.$arrow || this.tip().find(".tooltip-arrow") 281 } 303 , toggle: function (e) { 304 var self = e ? $(e.currentTarget)[this.type](this._options).data(this.type) : this 305 self.tip().hasClass('in') ? self.hide() : self.show()combobox.js https://gitlab.com/CORP-RESELLER/jenkins | JavaScript | 398 lines
252 item.onmouseover = function() {this.comboBox.select(this.comboBoxIndex);}; 253 item.onmousedown = function() {this.comboBox.choose(this.comboBoxIndex);}; 254 this.dropdown.appendChild(item); 331ComboBox.prototype.selectNext = function() { 332 if (this.selectedItemIndex >= this.availableItems.length - 1) 333 return false; 378 var offsets = Utilities.getOffsets(this.field); 379 this.dropdown.style.top = offsets.y + (this.field.offsetHeight ? this.field.offsetHeight : 22) + "px"; 380 this.dropdown.style.left = offsets.x + "px"; 380 this.dropdown.style.left = offsets.x + "px"; 381 this.dropdown.style.width = (this.field.offsetWidth ? this.field.offsetWidth : 100) + "px" 382} 394 } else { 395 this.dropdown.childNodes[i].className = this.dropdown.childNodes[i].className.replace(/ *comboBoxSelectedItem */g, ""); 396 }stepy.min.js https://gitlab.com/Mustafiz.it12/Trainer_Registration | JavaScript | 414 lines
43 var self = this, 44 that = $(this), 45 id = that.attr('id'); 106 107 that.data({ 'settings': this.opt, 'stepy': true }); 108 }); 132 var self = this, 133 that = $(this), 134 finish = that.children('input[type="submit"]'); 171 var self = this, 172 that = $(this), 173 attributes = { href: '#', 'class': 'button-back', html: self.opt.backLabel }; 210 var self = this, 211 that = $(this), 212 attributes = { href: '#', 'class': 'button-next', html: self.opt.nextLabel };ca.js https://gitlab.com/wuhang2003/core | JavaScript | 106 lines
4 "Cannot write into \"config\" directory!" : "No es pot escriure a la carpeta \"config\"!", 5 "This can usually be fixed by giving the webserver write access to the config directory" : "Això normalment es pot solucionar donant al servidor web permÃs d'escriptura a la carpeta de configuració", 6 "See %s" : "Comproveu %s", 6 "See %s" : "Comproveu %s", 7 "This can usually be fixed by %sgiving the webserver write access to the config directory%s." : "Això normalment es pot solucionar donant a %s permÃs d'escriptura a la carpeta de configuració %s", 8 "Sample configuration detected" : "Configuració d'exemple detectada", 8 "Sample configuration detected" : "Configuració d'exemple detectada", 9 "It has been detected that the sample configuration has been copied. This can break your installation and is unsupported. Please read the documentation before performing changes on config.php" : "S'ha detectat que la configuració d'exemple ha estat copiada. Això no està suportat, i podria corrompre la vostra instalació. Siusplau, llegiu la documentació abans de realitzar canvis a config.php", 10 "PHP %s or higher is required." : "Es requereix PHP %s o superior.", 37 "App can't be installed because of not allowed code in the App" : "L'aplicació no es pot instal·lar perquè hi ha codi no autoritzat en l'aplicació", 38 "App can't be installed because it is not compatible with this version of ownCloud" : "L'aplicació no es pot instal·lar perquè no és compatible amb aquesta versió d'ownCloud", 39 "App can't be installed because it contains the <shipped>true</shipped> tag which is not allowed for non shipped apps" : "L'aplicació no es pot instal·lar perquè conté l'etiqueta <shipped>vertader</shipped> que no es permet per aplicacions no enviades", 53 "PostgreSQL username and/or password not valid" : "Nom d'usuari i/o contrasenya PostgreSQL no và lids", 54 "Mac OS X is not supported and %s will not work properly on this platform. Use it at your own risk! " : "Mac OS X no té suport i %s no funcionarà correctament en aquesta plataforma. Useu-ho al vostre risc!", 55 "For the best results, please consider using a GNU/Linux server instead." : "Per millors resultats, millor considereu utilitzar un servidor GNU/Linux.",Player.js https://bitbucket.org/gasperbregar/simplysimple-tickets.git | JavaScript | 436 lines
92 /** 93 * @cfg {Object} keyFrameEvents An object that describes the events that should generate 94 * keyframe events. For example, `{ click: true }` would generate keyframe events after 132 * @event keyframe 133 * Fires when this player reaches a keyframe. Typically, this is after events 134 * like `click` are injected and any resulting animations have been completed. 184 getTimeIndex: function () { 185 var t = this.getTimestamp() - this.stallTime; 186 return t * this.speed; 224 /** 225 * This method returns the event descriptor at the front of the queue. This does not 226 * dequeue the event. Repeated calls return the same object (until {@link #nextEvent} 300 /** 301 * This method is called when a keyframe is reached. This will fire the keyframe event. 302 * If the keyframe has been handled, true is returned. Otherwise, false is returned.index.js https://gitlab.com/Mirros/cdnjs | JavaScript | 258 lines
182 183 this.xmlToJs = this.build = function (oXMLParent, nVerbosity /* optional */, bFreeze /* optional */, bNesteAttributes /* optional */) { 184 var _nVerb = arguments.length > 1 && typeof nVerbosity === "number" ? nVerbosity & 3 : /* put here the default verbosity level: */ 1; 187 188 this.jsToXml = this.unbuild = function (oObjTree, sNamespaceURI /* optional */, sQualifiedName /* optional */, oDocumentType /* optional */) { 189 var oNewDoc = window.document.implementation.createDocument(sNamespaceURI || null, sQualifiedName || "", oDocumentType || null); 193 194 this.config = function(o) { 195 for (var k in o) { 227 228 this.xmlToString = function (xmlObj) { 229 if (typeof xmlObj.xml !== "undefined") { 241 242 this.jsToString = this.stringify = function(oObjTree, sNamespaceURI /* optional */, sQualifiedName /* optional */, oDocumentType /* optional */) { 243 return this.xmlToString(jquery.mockjax.js https://gitlab.com/Mirros/cdnjs | JavaScript | 317 lines
23 // Iterate over our mock handlers (in registration order) until we find 24 // one that is willing to intercept the request 25 $.each(mockHandlers, function(k, v) { 30 // If the mock was registered with a function, let the function decide if we 31 // want to mock this request 32 if ( $.isFunction(mockHandlers[k]) ) { 36 // Inspect the URL of the request and check if the mock handler's url 37 // matches the url for this ajax request 38 if ( $.isFunction(m.url.test) ) { 76 })(m.data, s.data); 77 // They're not identical, do not mock this request 78 if ( identical == false ) { 120 // We need to make sure 121 // that a JSONP style response is executed properly 122 s.dataType = "script";mock-ajax.js https://gitlab.com/Mirros/cdnjs | JavaScript | 367 lines
12Permission is hereby granted, free of charge, to any person obtaining 13a copy of this software and associated documentation files (the 14"Software"), to deal in the Software without restriction, including 19 20The above copyright notice and this permission notice shall be 21included in all copies or substantial portions of the Software. 231 232 return paramParser.findParser(this).parse(this.params); 233 }, 353 query = urlSplit[1]; 354 matches = this.url === url && this.query === normalizeQuery(query); 355 } 355 } 356 return matches && (!this.data || this.data === normalizeQuery(data)); 357 };attribute-core-tests.js https://bitbucket.org/Quartermain/yui3.git | JavaScript | 401 lines
6 function TestAugmentWithATTRS(attrs, values) {} 7 TestAugmentWithATTRS.ATTRS = { 8 foo: { 72 AttrHost.prototype.DEValueFn = function() { 73 return this.get("D") + this.get("E"); 74 }; 192 193 var h = this.createHost(); 194 h.set("E", "MyNewEVal"); 201 testWriteOnce : function() { 202 var h = this.createHost({E:"MyEVal"}); 203 h.set("E", "MyNewEVal"); 377 testProtect : function() { 378 var h = this.createHost(); 379 var q = h._protectAttrs(AttrHost.ATTRS);cookiejar.js https://gitlab.com/blocknotary/IonicInterviews | JavaScript | 265 lines
41 Cookie.prototype.toString = function toString() { 42 var str = [this.name + "=" + this.value]; 43 if (this.expiration_date !== Infinity) { 61 Cookie.prototype.toValueString = function toValueString() { 62 return this.name + "=" + this.value; 63 }; 100 ""; 101 this.explicit_domain = !!this.domain; 102 break; 133 Cookie.prototype.collidesWith = function collidesWith(access_info) { 134 if ((this.path && !access_info.path) || (this.domain && !access_info.domain)) { 135 return false; 136 } 137 if (this.path && access_info.path.indexOf(this.path) !== 0) { 138 return false;event-valuechange.js https://bitbucket.org/kudutest1/moodlegit.git | JavaScript | 462 lines
4/** 5Adds a synthetic `valuechange` event that fires when the `value` property of an 6`<input>` or `<textarea>` node changes as a result of a keystroke, mouse 19/** 20Provides the implementation for the synthetic `valuechange` event. This class 21isn't meant to be used directly, but is public to make monkeypatching possible. 36 37 config, // defined at the end of this file 38 75 @param {Object} options Options object. 76 @param {EventFacade} [options.e] Event facade of the event that 77 initiated the polling. 124 _refreshTimeout: function (node, notifier) { 125 // The node may have been destroyed, so check that it still exists 126 // before trying to get its data. Otherwise an error will occur.BloomAndLensFlares.js https://bitbucket.org/lostfictions/noisebridge-jam-3021.git | JavaScript | 289 lines
160 161 // smooth a little, this needs to be resolution dependent 162 /* 181 // thirdQuarter has the brightcut unblurred colors 182 // quarterRezColor is the blurred, brightcut buffer that will end up as bloom 183Xml.js https://bitbucket.org/mblomdahl/mini-laboration-ccr.git | JavaScript | 339 lines
20 * 21 * The XML Reader is used by a Proxy to read a server response that is sent back in XML format. This usually happens as 22 * a result of loading a Store - for example we might create something like this: 45 * We created the simplest type of XML Reader possible by simply telling our {@link Ext.data.Store Store}'s {@link 46 * Ext.data.proxy.Proxy Proxy} that we want a XML Reader. The Store automatically passes the configured model to the 47 * Store, so it is as if we passed this instead: 152 * @cfg {String} namespace 153 * A namespace prefix that will be prepended to the field name when reading a 154 * field from an XML node. Take, for example, the following Model: 225 226 this.fireEvent('exception', this, response, error); 227 323 * its ordinal position in the fields collsction as the index. 324 * This is used by buildExtractors to create optimized on extractor function which converts raw data into model instances. 325 */store.js https://github.com/stefannygard/jquerymx.git | JavaScript | 392 lines
18 19 this.namespace.bind('destroyed', this.callback('remove')) 20 this.namespace.bind('updated', this.callback('updated')) 99 // if there is something there ... take care of it .. 100 this.update(this.data[id], item); 101 } else { 178 _compare : function(prop, itemData, paramData){ 179 return same(itemData, paramData, this.compare[prop]) //this.compare[prop] ? this.compare[prop](itemData, paramData) : itemData == paramData; 180 }, 362 /*if(!list.bound){ 363 this.sets = $.grep(this.sets, function(set){ set !== sameSet}); 364 // we need to remove these items too ... (unless we are a superset) 384 // do sorting / grouping 385 list = this.pagination(this.sort(list, params), params); 386 // take limit and offset ...convnet_magicnet.js https://gitlab.com/admin-github-cloud/convnetjs | JavaScript | 321 lines
56 this.candidates = []; // candidate networks that are being currently evaluated 57 this.evaluated_candidates = []; // history of all candidates that were fully evaluated on all folds 58 this.unique_labels = arrUnique(labels); 109 // sample training hyperparameters 110 var bs = randi(this.batch_size_min, this.batch_size_max); // batch size 111 var l2 = Math.pow(10, randf(this.l2_decay_min, this.l2_decay_max)); // l2 weight decay 192 if(this.evaluated_candidates.length > 3 * this.ensemble_size) { 193 this.evaluated_candidates = this.evaluated_candidates.slice(0, 3 * this.ensemble_size); 194 } 198 this.sampleCandidates(); // begin with new candidates 199 this.foldix = 0; // reset this 200 } else { 290 // dump the top ensemble_size networks as a list 291 var nv = Math.min(this.ensemble_size, this.evaluated_candidates.length); 292 var json = {};_HasDropDown.js https://github.com/atasay/scorll.git | JavaScript | 443 lines
95 96 this._docHandler = this.connect(dojo.doc, "onmouseup", "_onDropDownMouseUp"); 97 165 166 this._buttonNode = this._buttonNode || this.focusNode || this.domNode; 167 this._popupStateNode = this._popupStateNode || this.focusNode || this._buttonNode; 190 this.connect(this.focusNode, "onkeypress", "_onKey"); 191 this.connect(this.focusNode, "onkeyup", "_onKeyUp"); 192 }, 336 // Code for resizing dropdown (height limitation, or increasing width to match my width) 337 if(this.maxHeight || this.forceWidth || this.autoWidth){ 338 var myStyle = { 403 around: aroundNode, 404 orient: dijit.getPopupAroundAlignment((this.dropDownPosition && this.dropDownPosition.length) ? this.dropDownPosition : ["below"],this.isLeftToRight()), 405 onExecute: function(){