repo
stringlengths
5
67
path
stringlengths
4
116
func_name
stringlengths
0
58
original_string
stringlengths
52
373k
language
stringclasses
1 value
code
stringlengths
52
373k
code_tokens
list
docstring
stringlengths
4
11.8k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
86
226
partition
stringclasses
1 value
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function() { inputEx.Form.superclass.disable.call(this); for (var i = 0 ; i < this.buttons.length ; i++) { this.buttons[i].disable(); } }
javascript
function() { inputEx.Form.superclass.disable.call(this); for (var i = 0 ; i < this.buttons.length ; i++) { this.buttons[i].disable(); } }
[ "function", "(", ")", "{", "inputEx", ".", "Form", ".", "superclass", ".", "disable", ".", "call", "(", "this", ")", ";", "for", "(", "var", "i", "=", "0", ";", "i", "<", "this", ".", "buttons", ".", "length", ";", "i", "++", ")", "{", "this", ...
Disable all fields and buttons in the form
[ "Disable", "all", "fields", "and", "buttons", "in", "the", "form" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L2572-L2578
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(parentEl) { this.appendSeparator(0); if(!this.options.fields) {return;} var i, n=this.options.fields.length, f, field, fieldEl,t; for(i = 0 ; i < n ; i++) { f = this.options.fields[i]; if (this.options.required) {f.required = true;} field = this.renderF...
javascript
function(parentEl) { this.appendSeparator(0); if(!this.options.fields) {return;} var i, n=this.options.fields.length, f, field, fieldEl,t; for(i = 0 ; i < n ; i++) { f = this.options.fields[i]; if (this.options.required) {f.required = true;} field = this.renderF...
[ "function", "(", "parentEl", ")", "{", "this", ".", "appendSeparator", "(", "0", ")", ";", "if", "(", "!", "this", ".", "options", ".", "fields", ")", "{", "return", ";", "}", "var", "i", ",", "n", "=", "this", ".", "options", ".", "fields", ".",...
Render the subfields
[ "Render", "the", "subfields" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L2689-L2718
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(fieldOptions) { // Subfields should inherit required property if (this.options.required) { fieldOptions.required = true; } return inputEx.CombineField.superclass.renderField.call(this, fieldOptions); }
javascript
function(fieldOptions) { // Subfields should inherit required property if (this.options.required) { fieldOptions.required = true; } return inputEx.CombineField.superclass.renderField.call(this, fieldOptions); }
[ "function", "(", "fieldOptions", ")", "{", "// Subfields should inherit required property", "if", "(", "this", ".", "options", ".", "required", ")", "{", "fieldOptions", ".", "required", "=", "true", ";", "}", "return", "inputEx", ".", "CombineField", ".", "supe...
Override to force required option on each subfield @param {Object} fieldOptions The field properties as required by inputEx()
[ "Override", "to", "force", "required", "option", "on", "each", "subfield" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L2724-L2732
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(i) { if(this.options.separators && this.options.separators[i]) { var sep = inputEx.cn('div', {className: 'inputEx-CombineField-separator'}, null, this.options.separators[i]); this.divEl.appendChild(sep); } }
javascript
function(i) { if(this.options.separators && this.options.separators[i]) { var sep = inputEx.cn('div', {className: 'inputEx-CombineField-separator'}, null, this.options.separators[i]); this.divEl.appendChild(sep); } }
[ "function", "(", "i", ")", "{", "if", "(", "this", ".", "options", ".", "separators", "&&", "this", ".", "options", ".", "separators", "[", "i", "]", ")", "{", "var", "sep", "=", "inputEx", ".", "cn", "(", "'div'", ",", "{", "className", ":", "'i...
Add a separator to the divEl
[ "Add", "a", "separator", "to", "the", "divEl" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L2753-L2758
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(options) { inputEx.AutoComplete.superclass.setOptions.call(this, options); // Overwrite options this.options.className = options.className ? options.className : 'inputEx-Field inputEx-AutoComplete'; // Added options this.options.datasource = options.datasource; thi...
javascript
function(options) { inputEx.AutoComplete.superclass.setOptions.call(this, options); // Overwrite options this.options.className = options.className ? options.className : 'inputEx-Field inputEx-AutoComplete'; // Added options this.options.datasource = options.datasource; thi...
[ "function", "(", "options", ")", "{", "inputEx", ".", "AutoComplete", ".", "superclass", ".", "setOptions", ".", "call", "(", "this", ",", "options", ")", ";", "// Overwrite options", "this", ".", "options", ".", "className", "=", "options", ".", "className"...
Adds autocomplete options @param {Object} options Options object as passed to the constructor
[ "Adds", "autocomplete", "options" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L3134-L3146
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function() { // This element wraps the input node in a float: none div this.wrapEl = inputEx.cn('div', {className: 'inputEx-StringField-wrapper'}); // Attributes of the input field var attributes = { type: 'text', id: YAHOO.util.Dom.generateId() }; if(thi...
javascript
function() { // This element wraps the input node in a float: none div this.wrapEl = inputEx.cn('div', {className: 'inputEx-StringField-wrapper'}); // Attributes of the input field var attributes = { type: 'text', id: YAHOO.util.Dom.generateId() }; if(thi...
[ "function", "(", ")", "{", "// This element wraps the input node in a float: none div", "this", ".", "wrapEl", "=", "inputEx", ".", "cn", "(", "'div'", ",", "{", "className", ":", "'inputEx-StringField-wrapper'", "}", ")", ";", "// Attributes of the input field", "var",...
Render the hidden list element
[ "Render", "the", "hidden", "list", "element" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L3164-L3199
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function() { // Call this function only when this.el AND this.listEl are available if(!this._nElementsReady) { this._nElementsReady = 0; } this._nElementsReady++; if(this._nElementsReady != 2) return; if(!lang.isUndefined(this.options.datasourceParameters)) { for (param in ...
javascript
function() { // Call this function only when this.el AND this.listEl are available if(!this._nElementsReady) { this._nElementsReady = 0; } this._nElementsReady++; if(this._nElementsReady != 2) return; if(!lang.isUndefined(this.options.datasourceParameters)) { for (param in ...
[ "function", "(", ")", "{", "// Call this function only when this.el AND this.listEl are available", "if", "(", "!", "this", ".", "_nElementsReady", ")", "{", "this", ".", "_nElementsReady", "=", "0", ";", "}", "this", ".", "_nElementsReady", "++", ";", "if", "(", ...
Build the YUI autocompleter
[ "Build", "the", "YUI", "autocompleter" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L3204-L3233
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(e) { this.setClassFromState(); // Clear the field when no value if (this.hiddenEl.value != this.el.value) this.hiddenEl.value = this.el.value; lang.later(50, this, function() { if(this.el.value == "") { this.setValue(""); } }); }
javascript
function(e) { this.setClassFromState(); // Clear the field when no value if (this.hiddenEl.value != this.el.value) this.hiddenEl.value = this.el.value; lang.later(50, this, function() { if(this.el.value == "") { this.setValue(""); } }); }
[ "function", "(", "e", ")", "{", "this", ".", "setClassFromState", "(", ")", ";", "// Clear the field when no value ", "if", "(", "this", ".", "hiddenEl", ".", "value", "!=", "this", ".", "el", ".", "value", ")", "this", ".", "hiddenEl", ".", "value", "="...
onChange event handler @param {Event} e The original 'change' event
[ "onChange", "event", "handler" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L3256-L3265
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(options) { inputEx.ColorField.superclass.setOptions.call(this, options); // Overwrite options this.options.className = options.className ? options.className : 'inputEx-Field inputEx-ColorField inputEx-PickerField'; // Added options this.options.palette = options.palette; this....
javascript
function(options) { inputEx.ColorField.superclass.setOptions.call(this, options); // Overwrite options this.options.className = options.className ? options.className : 'inputEx-Field inputEx-ColorField inputEx-PickerField'; // Added options this.options.palette = options.palette; this....
[ "function", "(", "options", ")", "{", "inputEx", ".", "ColorField", ".", "superclass", ".", "setOptions", ".", "call", "(", "this", ",", "options", ")", ";", "// Overwrite options", "this", ".", "options", ".", "className", "=", "options", ".", "className", ...
Adds the 'inputEx-ColorField' default className @param {Object} options Options object as passed to the constructor
[ "Adds", "the", "inputEx", "-", "ColorField", "default", "className" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L3486-L3498
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function() { var grid, eventDelegation, square, i; // remember squares this.squares = []; // container grid = inputEx.cn('div', {className: 'inputEx-ColorField-Grid'}); // Is event delegation available ? // (YAHOO.util.Event.delegate method is in "event-delegate" YUI-module)...
javascript
function() { var grid, eventDelegation, square, i; // remember squares this.squares = []; // container grid = inputEx.cn('div', {className: 'inputEx-ColorField-Grid'}); // Is event delegation available ? // (YAHOO.util.Event.delegate method is in "event-delegate" YUI-module)...
[ "function", "(", ")", "{", "var", "grid", ",", "eventDelegation", ",", "square", ",", "i", ";", "// remember squares", "this", ".", "squares", "=", "[", "]", ";", "// container", "grid", "=", "inputEx", ".", "cn", "(", "'div'", ",", "{", "className", "...
This creates a color grid
[ "This", "creates", "a", "color", "grid" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L3607-L3663
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(e,square,container) { // Stop the event to prevent a selection Event.stopEvent(e); // Overlay closure this.oOverlay.hide(); // SetValue var color = Dom.getStyle(square,'background-color'); var hexaColor = inputEx.ColorField.ensureHexa(color); this.setValue(hexaColor...
javascript
function(e,square,container) { // Stop the event to prevent a selection Event.stopEvent(e); // Overlay closure this.oOverlay.hide(); // SetValue var color = Dom.getStyle(square,'background-color'); var hexaColor = inputEx.ColorField.ensureHexa(color); this.setValue(hexaColor...
[ "function", "(", "e", ",", "square", ",", "container", ")", "{", "// Stop the event to prevent a selection", "Event", ".", "stopEvent", "(", "e", ")", ";", "// Overlay closure", "this", ".", "oOverlay", ".", "hide", "(", ")", ";", "// SetValue", "var", "color"...
Handle a color selection @param {Event} e The original click event
[ "Handle", "a", "color", "selection" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L3669-L3682
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(options) { inputEx.DateField.superclass.setOptions.call(this, options); // Overwrite options this.options.className = options.className ? options.className : 'inputEx-Field inputEx-DateField'; this.options.messages.invalid = inputEx.messages.invalidDate ? inputEx.messages.invalidDate : "In...
javascript
function(options) { inputEx.DateField.superclass.setOptions.call(this, options); // Overwrite options this.options.className = options.className ? options.className : 'inputEx-Field inputEx-DateField'; this.options.messages.invalid = inputEx.messages.invalidDate ? inputEx.messages.invalidDate : "In...
[ "function", "(", "options", ")", "{", "inputEx", ".", "DateField", ".", "superclass", ".", "setOptions", ".", "call", "(", "this", ",", "options", ")", ";", "// Overwrite options", "this", ".", "options", ".", "className", "=", "options", ".", "className", ...
Adds the 'inputEx-DateField' default className @param {Object} options Options object as passed to the constructor
[ "Adds", "the", "inputEx", "-", "DateField", "default", "className" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L3842-L3852
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function() { var value = this.el.value; var separator = this.options.dateFormat.match(/[^Ymd ]/g)[0]; var ladate = value.split(separator); if( ladate.length != 3) { return false; } if ( isNaN(parseInt(ladate[0],10)) || isNaN(parseInt(ladate[1],10)) || isNaN(parseInt(ladate[2],10))) { return false; }...
javascript
function() { var value = this.el.value; var separator = this.options.dateFormat.match(/[^Ymd ]/g)[0]; var ladate = value.split(separator); if( ladate.length != 3) { return false; } if ( isNaN(parseInt(ladate[0],10)) || isNaN(parseInt(ladate[1],10)) || isNaN(parseInt(ladate[2],10))) { return false; }...
[ "function", "(", ")", "{", "var", "value", "=", "this", ".", "el", ".", "value", ";", "var", "separator", "=", "this", ".", "options", ".", "dateFormat", ".", "match", "(", "/", "[^Ymd ]", "/", "g", ")", "[", "0", "]", ";", "var", "ladate", "=", ...
Specific Date validation depending of the 'format' option
[ "Specific", "Date", "validation", "depending", "of", "the", "format", "option" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L3857-L3873
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(val, sendUpdatedEvt) { // Don't try to parse a date if there is no date if( val === '' ) { inputEx.DateField.superclass.setValue.call(this, '', sendUpdatedEvt); return; } var str = ""; if (val instanceof Date) { str = inputEx.DateField.formatDate(val, this.options.dateFor...
javascript
function(val, sendUpdatedEvt) { // Don't try to parse a date if there is no date if( val === '' ) { inputEx.DateField.superclass.setValue.call(this, '', sendUpdatedEvt); return; } var str = ""; if (val instanceof Date) { str = inputEx.DateField.formatDate(val, this.options.dateFor...
[ "function", "(", "val", ",", "sendUpdatedEvt", ")", "{", "// Don't try to parse a date if there is no date", "if", "(", "val", "===", "''", ")", "{", "inputEx", ".", "DateField", ".", "superclass", ".", "setValue", ".", "call", "(", "this", ",", "''", ",", "...
Format the date according to options.dateFormat @param {Date} val Date to set @param {boolean} [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)
[ "Format", "the", "date", "according", "to", "options", ".", "dateFormat" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L3881-L3902
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(forceDate) { // let parent class function check if typeInvite, etc... var value = inputEx.DateField.superclass.getValue.call(this); // Hack to validate if field not required and empty if (value === '') { return '';} var finalDate = inputEx.DateField.parseWithFormat(value,this.options.dateF...
javascript
function(forceDate) { // let parent class function check if typeInvite, etc... var value = inputEx.DateField.superclass.getValue.call(this); // Hack to validate if field not required and empty if (value === '') { return '';} var finalDate = inputEx.DateField.parseWithFormat(value,this.options.dateF...
[ "function", "(", "forceDate", ")", "{", "// let parent class function check if typeInvite, etc...", "var", "value", "=", "inputEx", ".", "DateField", ".", "superclass", ".", "getValue", ".", "call", "(", "this", ")", ";", "// Hack to validate if field not required and emp...
Return the date @param {Boolean} forceDate Skip the valueFormat option if set to truthy @return {String || Date} Formatted date using the valueFormat or a javascript Date instance
[ "Return", "the", "date" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L3909-L3924
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(value, sendUpdatedEvt) { var values = []; // !value catches "" (empty field), and invalid dates if(!value || !lang.isFunction(value.getTime) || !lang.isNumber(value.getTime()) ) { values[this.monthIndex] = ""; values[this.yearIndex] = ""; values[this.dayIndex...
javascript
function(value, sendUpdatedEvt) { var values = []; // !value catches "" (empty field), and invalid dates if(!value || !lang.isFunction(value.getTime) || !lang.isNumber(value.getTime()) ) { values[this.monthIndex] = ""; values[this.yearIndex] = ""; values[this.dayIndex...
[ "function", "(", "value", ",", "sendUpdatedEvt", ")", "{", "var", "values", "=", "[", "]", ";", "// !value catches \"\" (empty field), and invalid dates", "if", "(", "!", "value", "||", "!", "lang", ".", "isFunction", "(", "value", ".", "getTime", ")", "||", ...
Set the value. Format the date according to options.dateFormat @param {Date} val Date to set @param {boolean} [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)
[ "Set", "the", "value", ".", "Format", "the", "date", "according", "to", "options", ".", "dateFormat" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L4006-L4020
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(options) { inputEx.DatePickerField.superclass.setOptions.call(this, options); // Overwrite default options this.options.className = options.className ? options.className : 'inputEx-Field inputEx-DateField inputEx-PickerField inputEx-DatePickerField'; this.options.readonly = YAHO...
javascript
function(options) { inputEx.DatePickerField.superclass.setOptions.call(this, options); // Overwrite default options this.options.className = options.className ? options.className : 'inputEx-Field inputEx-DateField inputEx-PickerField inputEx-DatePickerField'; this.options.readonly = YAHO...
[ "function", "(", "options", ")", "{", "inputEx", ".", "DatePickerField", ".", "superclass", ".", "setOptions", ".", "call", "(", "this", ",", "options", ")", ";", "// Overwrite default options", "this", ".", "options", ".", "className", "=", "options", ".", ...
Set the default date picker CSS classes @param {Object} options Options object as passed to the constructor
[ "Set", "the", "default", "date", "picker", "CSS", "classes" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L4134-L4144
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function() { inputEx.DatePickerField.superclass.renderComponent.call(this); // Create overlay this.oOverlay = new YAHOO.widget.Overlay(Dom.generateId(), { visible: false }); this.oOverlay.setBody(" "); this.oOverlay.body.id = Dom.generateId(); // Create bu...
javascript
function() { inputEx.DatePickerField.superclass.renderComponent.call(this); // Create overlay this.oOverlay = new YAHOO.widget.Overlay(Dom.generateId(), { visible: false }); this.oOverlay.setBody(" "); this.oOverlay.body.id = Dom.generateId(); // Create bu...
[ "function", "(", ")", "{", "inputEx", ".", "DatePickerField", ".", "superclass", ".", "renderComponent", ".", "call", "(", "this", ")", ";", "// Create overlay", "this", ".", "oOverlay", "=", "new", "YAHOO", ".", "widget", ".", "Overlay", "(", "Dom", ".", ...
Render the input field and the minical container
[ "Render", "the", "input", "field", "and", "the", "minical", "container" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L4149-L4188
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function() { // if already rendered, ignore call if (!!this.calendarRendered) return; // Render the calendar var calendarId = Dom.generateId(); this.calendar = new YAHOO.widget.Calendar(calendarId,this.oOverlay.body.id, this.options.calendar ); /* this.cale...
javascript
function() { // if already rendered, ignore call if (!!this.calendarRendered) return; // Render the calendar var calendarId = Dom.generateId(); this.calendar = new YAHOO.widget.Calendar(calendarId,this.oOverlay.body.id, this.options.calendar ); /* this.cale...
[ "function", "(", ")", "{", "// if already rendered, ignore call", "if", "(", "!", "!", "this", ".", "calendarRendered", ")", "return", ";", "// Render the calendar", "var", "calendarId", "=", "Dom", ".", "generateId", "(", ")", ";", "this", ".", "calendar", "=...
Called ONCE to render the calendar lazily
[ "Called", "ONCE", "to", "render", "the", "calendar", "lazily" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L4194-L4286
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(e) { var date = this.getValue(true); if (!!this.calendar) { if(!!date) { // HACK: don't fire Field updatedEvt when selecting date this.ignoreBeforeShowOverlayCall = true; // select the previous date in calendar this.calendar.select(date); t...
javascript
function(e) { var date = this.getValue(true); if (!!this.calendar) { if(!!date) { // HACK: don't fire Field updatedEvt when selecting date this.ignoreBeforeShowOverlayCall = true; // select the previous date in calendar this.calendar.select(date); t...
[ "function", "(", "e", ")", "{", "var", "date", "=", "this", ".", "getValue", "(", "true", ")", ";", "if", "(", "!", "!", "this", ".", "calendar", ")", "{", "if", "(", "!", "!", "date", ")", "{", "// HACK: don't fire Field updatedEvt when selecting date",...
Select the right date and display the right page on calendar, when the field has a value
[ "Select", "the", "right", "date", "and", "display", "the", "right", "page", "on", "calendar", "when", "the", "field", "has", "a", "value" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L4291-L4307
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function() { this.type = inputEx.HiddenField; this.divEl = inputEx.cn('div', null, {display: 'none'}); this.el = inputEx.cn('input', {type: 'hidden'}); this.rawValue = ''; // initialize the rawValue with '' (default value of a hidden field) if(this.options.name) this.el.name = this.options....
javascript
function() { this.type = inputEx.HiddenField; this.divEl = inputEx.cn('div', null, {display: 'none'}); this.el = inputEx.cn('input', {type: 'hidden'}); this.rawValue = ''; // initialize the rawValue with '' (default value of a hidden field) if(this.options.name) this.el.name = this.options....
[ "function", "(", ")", "{", "this", ".", "type", "=", "inputEx", ".", "HiddenField", ";", "this", ".", "divEl", "=", "inputEx", ".", "cn", "(", "'div'", ",", "null", ",", "{", "display", ":", "'none'", "}", ")", ";", "this", ".", "el", "=", "input...
Doesn't render much...
[ "Doesn", "t", "render", "much", "..." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L4498-L4507
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(options) { inputEx.IntegerField.superclass.setOptions.call(this, options); this.options.negative = lang.isUndefined(options.negative) ? false : options.negative; this.options.min = lang.isUndefined(options.min) ? (this.options.negative ? -Infinity : 0) : parseInt(options.min,10); ...
javascript
function(options) { inputEx.IntegerField.superclass.setOptions.call(this, options); this.options.negative = lang.isUndefined(options.negative) ? false : options.negative; this.options.min = lang.isUndefined(options.min) ? (this.options.negative ? -Infinity : 0) : parseInt(options.min,10); ...
[ "function", "(", "options", ")", "{", "inputEx", ".", "IntegerField", ".", "superclass", ".", "setOptions", ".", "call", "(", "this", ",", "options", ")", ";", "this", ".", "options", ".", "negative", "=", "lang", ".", "isUndefined", "(", "options", ".",...
Adds the negative, min, and max options @param {Object} options
[ "Adds", "the", "negative", "min", "and", "max", "options" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L4834-L4840
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function() { var v = this.getValue(), str_value = inputEx.IntegerField.superclass.getValue.call(this); // empty field if (v === '') { // validate only if not required return !this.options.required; } if (isNaN(v)) { return false; } ...
javascript
function() { var v = this.getValue(), str_value = inputEx.IntegerField.superclass.getValue.call(this); // empty field if (v === '') { // validate only if not required return !this.options.required; } if (isNaN(v)) { return false; } ...
[ "function", "(", ")", "{", "var", "v", "=", "this", ".", "getValue", "(", ")", ",", "str_value", "=", "inputEx", ".", "IntegerField", ".", "superclass", ".", "getValue", ".", "call", "(", "this", ")", ";", "// empty field", "if", "(", "v", "===", "''...
Validate if is a number
[ "Validate", "if", "is", "a", "number" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L4864-L4880
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(value) { // Render the subField var subFieldEl = this.renderSubField(value); if(this.options.name) { subFieldEl.setFieldName(this.options.name+"["+this.subFields.length+"]"); } // Adds it to the local list this.subFields.push(subFieldEl); return subFieldEl; }
javascript
function(value) { // Render the subField var subFieldEl = this.renderSubField(value); if(this.options.name) { subFieldEl.setFieldName(this.options.name+"["+this.subFields.length+"]"); } // Adds it to the local list this.subFields.push(subFieldEl); return subFieldEl; }
[ "function", "(", "value", ")", "{", "// Render the subField", "var", "subFieldEl", "=", "this", ".", "renderSubField", "(", "value", ")", ";", "if", "(", "this", ".", "options", ".", "name", ")", "{", "subFieldEl", ".", "setFieldName", "(", "this", ".", ...
Adds an element @param {Any} The initial value of the subfield to create @return {inputEx.Field} SubField added instance
[ "Adds", "an", "element" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5071-L5084
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(e) { var childElement = Event.getTarget(e).parentNode; var previousChildNode = null; var nodeIndex = -1; for(var i = 1 ; i < childElement.parentNode.childNodes.length ; i++) { var el=childElement.parentNode.childNodes[i]; if(el == childElement) { previousChildNode =...
javascript
function(e) { var childElement = Event.getTarget(e).parentNode; var previousChildNode = null; var nodeIndex = -1; for(var i = 1 ; i < childElement.parentNode.childNodes.length ; i++) { var el=childElement.parentNode.childNodes[i]; if(el == childElement) { previousChildNode =...
[ "function", "(", "e", ")", "{", "var", "childElement", "=", "Event", ".", "getTarget", "(", "e", ")", ".", "parentNode", ";", "var", "previousChildNode", "=", "null", ";", "var", "nodeIndex", "=", "-", "1", ";", "for", "(", "var", "i", "=", "1", ";...
Switch a subField with its previous one Called when the user clicked on the up arrow of a sortable list @param {Event} e Original click event
[ "Switch", "a", "subField", "with", "its", "previous", "one", "Called", "when", "the", "user", "clicked", "on", "the", "up", "arrow", "of", "a", "sortable", "list" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5188-L5228
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(e) { Event.stopEvent(e); // Prevent removing a field if already at minItems if( lang.isNumber(this.options.minItems) && this.subFields.length <= this.options.minItems ) { return; } // Get the wrapping div element var elementDiv = Event.getTarget(e).parentNode...
javascript
function(e) { Event.stopEvent(e); // Prevent removing a field if already at minItems if( lang.isNumber(this.options.minItems) && this.subFields.length <= this.options.minItems ) { return; } // Get the wrapping div element var elementDiv = Event.getTarget(e).parentNode...
[ "function", "(", "e", ")", "{", "Event", ".", "stopEvent", "(", "e", ")", ";", "// Prevent removing a field if already at minItems", "if", "(", "lang", ".", "isNumber", "(", "this", ".", "options", ".", "minItems", ")", "&&", "this", ".", "subFields", ".", ...
Called when the user clicked on a delete button. @param {Event} e The original click event
[ "Called", "when", "the", "user", "clicked", "on", "a", "delete", "button", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5280-L5313
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(options) { inputEx.NumberField.superclass.setOptions.call(this, options); this.options.min = lang.isUndefined(options.min) ? -Infinity : parseFloat(options.min); this.options.max = lang.isUndefined(options.max) ? Infinity : parseFloat(options.max); }
javascript
function(options) { inputEx.NumberField.superclass.setOptions.call(this, options); this.options.min = lang.isUndefined(options.min) ? -Infinity : parseFloat(options.min); this.options.max = lang.isUndefined(options.max) ? Infinity : parseFloat(options.max); }
[ "function", "(", "options", ")", "{", "inputEx", ".", "NumberField", ".", "superclass", ".", "setOptions", ".", "call", "(", "this", ",", "options", ")", ";", "this", ".", "options", ".", "min", "=", "lang", ".", "isUndefined", "(", "options", ".", "mi...
Adds the min, and max options @param {Object} options
[ "Adds", "the", "min", "and", "max", "options" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5360-L5365
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function() { var v = this.getValue(), str_value = inputEx.NumberField.superclass.getValue.call(this); // empty field if (v === '') { // validate only if not required return !this.options.required; } if (isNaN(v)) { return false; } ...
javascript
function() { var v = this.getValue(), str_value = inputEx.NumberField.superclass.getValue.call(this); // empty field if (v === '') { // validate only if not required return !this.options.required; } if (isNaN(v)) { return false; } ...
[ "function", "(", ")", "{", "var", "v", "=", "this", ".", "getValue", "(", ")", ",", "str_value", "=", "inputEx", ".", "NumberField", ".", "superclass", ".", "getValue", ".", "call", "(", "this", ")", ";", "// empty field", "if", "(", "v", "===", "''"...
Check if the entered number is a float
[ "Check", "if", "the", "entered", "number", "is", "a", "float" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5388-L5405
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(options) { inputEx.PasswordField.superclass.setOptions.call(this, options); this.options.className = options.className ? options.className : "inputEx-Field inputEx-PasswordField"; // Add the password regexp (overridable) this.options.regexp = options.regexp || inputEx.regexps.password...
javascript
function(options) { inputEx.PasswordField.superclass.setOptions.call(this, options); this.options.className = options.className ? options.className : "inputEx-Field inputEx-PasswordField"; // Add the password regexp (overridable) this.options.regexp = options.regexp || inputEx.regexps.password...
[ "function", "(", "options", ")", "{", "inputEx", ".", "PasswordField", ".", "superclass", ".", "setOptions", ".", "call", "(", "this", ",", "options", ")", ";", "this", ".", "options", ".", "className", "=", "options", ".", "className", "?", "options", "...
Add the password regexp, strengthIndicator, capsLockWarning @param {Object} options Options object as passed to the constructor
[ "Add", "the", "password", "regexp", "strengthIndicator", "capsLockWarning" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5444-L5464
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function() { // IE doesn't want to set the "type" property to 'password' if the node has a parent // even if the parent is not in the DOM yet !! // This element wraps the input node in a float: none div this.wrapEl = inputEx.cn('div', {className: 'inputEx-StringField-wrapper'}); // At...
javascript
function() { // IE doesn't want to set the "type" property to 'password' if the node has a parent // even if the parent is not in the DOM yet !! // This element wraps the input node in a float: none div this.wrapEl = inputEx.cn('div', {className: 'inputEx-StringField-wrapper'}); // At...
[ "function", "(", ")", "{", "// IE doesn't want to set the \"type\" property to 'password' if the node has a parent", "// even if the parent is not in the DOM yet !!", "// This element wraps the input node in a float: none div", "this", ".", "wrapEl", "=", "inputEx", ".", "cn", "(", "'d...
Set the el type to 'password'
[ "Set", "the", "el", "type", "to", "password" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5469-L5507
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function() { if(this.options.confirmPasswordField) { if(this.options.confirmPasswordField.getValue() != this.getValue() ) { return false; } } return inputEx.PasswordField.superclass.validate.call(this); }
javascript
function() { if(this.options.confirmPasswordField) { if(this.options.confirmPasswordField.getValue() != this.getValue() ) { return false; } } return inputEx.PasswordField.superclass.validate.call(this); }
[ "function", "(", ")", "{", "if", "(", "this", ".", "options", ".", "confirmPasswordField", ")", "{", "if", "(", "this", ".", "options", ".", "confirmPasswordField", ".", "getValue", "(", ")", "!=", "this", ".", "getValue", "(", ")", ")", "{", "return",...
The validation adds the confirmation password field support
[ "The", "validation", "adds", "the", "confirmation", "password", "field", "support" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5522-L5529
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(e) { inputEx.PasswordField.superclass.onInput.call(this,e); if(this.options.confirmationPasswordField) { this.options.confirmationPasswordField.setClassFromState(); } }
javascript
function(e) { inputEx.PasswordField.superclass.onInput.call(this,e); if(this.options.confirmationPasswordField) { this.options.confirmationPasswordField.setClassFromState(); } }
[ "function", "(", "e", ")", "{", "inputEx", ".", "PasswordField", ".", "superclass", ".", "onInput", ".", "call", "(", "this", ",", "e", ")", ";", "if", "(", "this", ".", "options", ".", "confirmationPasswordField", ")", "{", "this", ".", "options", "."...
Update the state of the confirmation field @param {Event} e The original input event
[ "Update", "the", "state", "of", "the", "confirmation", "field" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5545-L5550
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(e) { inputEx.PasswordField.superclass.onKeyPress.call(this,e); if(this.options.capsLockWarning) { var ev = e ? e : window.event; if (!ev) { return; } var targ = ev.target ? ev.target : ev.srcElement; // get key pressed var wh...
javascript
function(e) { inputEx.PasswordField.superclass.onKeyPress.call(this,e); if(this.options.capsLockWarning) { var ev = e ? e : window.event; if (!ev) { return; } var targ = ev.target ? ev.target : ev.srcElement; // get key pressed var wh...
[ "function", "(", "e", ")", "{", "inputEx", ".", "PasswordField", ".", "superclass", ".", "onKeyPress", ".", "call", "(", "this", ",", "e", ")", ";", "if", "(", "this", ".", "options", ".", "capsLockWarning", ")", "{", "var", "ev", "=", "e", "?", "e...
callback to display the capsLockWarning
[ "callback", "to", "display", "the", "capsLockWarning" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5555-L5584
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(e) { inputEx.PasswordField.superclass.onKeyUp.call(this,e); if(this.options.strengthIndicator) { lang.later( 0, this, this.updateStrengthIndicator); } }
javascript
function(e) { inputEx.PasswordField.superclass.onKeyUp.call(this,e); if(this.options.strengthIndicator) { lang.later( 0, this, this.updateStrengthIndicator); } }
[ "function", "(", "e", ")", "{", "inputEx", ".", "PasswordField", ".", "superclass", ".", "onKeyUp", ".", "call", "(", "this", ",", "e", ")", ";", "if", "(", "this", ".", "options", ".", "strengthIndicator", ")", "{", "lang", ".", "later", "(", "0", ...
onkeyup callback to update the strength indicator
[ "onkeyup", "callback", "to", "update", "the", "strength", "indicator" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5589-L5594
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function (options) { var i, length; inputEx.RadioField.superclass.setOptions.call(this, options); // Display mode this.options.display = options.display === "vertically" ? "vertically" : "inline"; // default "inline" // Classname this.options.className = options.className ? options.cla...
javascript
function (options) { var i, length; inputEx.RadioField.superclass.setOptions.call(this, options); // Display mode this.options.display = options.display === "vertically" ? "vertically" : "inline"; // default "inline" // Classname this.options.className = options.className ? options.cla...
[ "function", "(", "options", ")", "{", "var", "i", ",", "length", ";", "inputEx", ".", "RadioField", ".", "superclass", ".", "setOptions", ".", "call", "(", "this", ",", "options", ")", ";", "// Display mode", "this", ".", "options", ".", "display", "=", ...
Adds the Radio button specific options @param {Object} options Options object as passed to the constructor
[ "Adds", "the", "Radio", "button", "specific", "options" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5713-L5756
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function () { // Delegate event listening because list of choices is dynamic // so we can't listen on each <input type="radio" class='inputEx-RadioField-radio' /> // Change event (IE does not fire "change" event, so listen to click instead) Event.delegate(this.fieldContainer, YAHOO.env.ua.ie ? "clic...
javascript
function () { // Delegate event listening because list of choices is dynamic // so we can't listen on each <input type="radio" class='inputEx-RadioField-radio' /> // Change event (IE does not fire "change" event, so listen to click instead) Event.delegate(this.fieldContainer, YAHOO.env.ua.ie ? "clic...
[ "function", "(", ")", "{", "// Delegate event listening because list of choices is dynamic", "// so we can't listen on each <input type=\"radio\" class='inputEx-RadioField-radio' />", "// Change event (IE does not fire \"change\" event, so listen to click instead)", "Event", ".", "delegate", "("...
Listen for change events on all radios
[ "Listen", "for", "change", "events", "on", "all", "radios" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5813-L5849
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function () { var i, length; for (i = 0, length = this.choicesList.length ; i < length ; i += 1) { if (this.choicesList[i].node.firstChild.checked) { Dom.addClass(this.choicesList[i].node,"inputEx-selected"); } else { Dom.removeClass(this.choicesList[i].node,"inputEx-selected"); ...
javascript
function () { var i, length; for (i = 0, length = this.choicesList.length ; i < length ; i += 1) { if (this.choicesList[i].node.firstChild.checked) { Dom.addClass(this.choicesList[i].node,"inputEx-selected"); } else { Dom.removeClass(this.choicesList[i].node,"inputEx-selected"); ...
[ "function", "(", ")", "{", "var", "i", ",", "length", ";", "for", "(", "i", "=", "0", ",", "length", "=", "this", ".", "choicesList", ".", "length", ";", "i", "<", "length", ";", "i", "+=", "1", ")", "{", "if", "(", "this", ".", "choicesList", ...
Add an additional class to the currently selected inputEx-RadioField-choice
[ "Add", "an", "additional", "class", "to", "the", "currently", "selected", "inputEx", "-", "RadioField", "-", "choice" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5854-L5867
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function () { var i, length; for (i = 0, length = this.choicesList.length ; i < length ; i += 1) { if (this.choicesList[i].node.firstChild.checked) { if (this.radioAny && this.radioAny == this.choicesList[i].node.firstChild) { return this.anyField.getValue(); } re...
javascript
function () { var i, length; for (i = 0, length = this.choicesList.length ; i < length ; i += 1) { if (this.choicesList[i].node.firstChild.checked) { if (this.radioAny && this.radioAny == this.choicesList[i].node.firstChild) { return this.anyField.getValue(); } re...
[ "function", "(", ")", "{", "var", "i", ",", "length", ";", "for", "(", "i", "=", "0", ",", "length", "=", "this", ".", "choicesList", ".", "length", ";", "i", "<", "length", ";", "i", "+=", "1", ")", "{", "if", "(", "this", ".", "choicesList", ...
Get the field value @return {Any}
[ "Get", "the", "field", "value" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5909-L5926
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function (value, sendUpdatedEvt) { var checkAny = true, valueFound = false, i, length; for (i = 0, length = this.choicesList.length ; i < length ; i += 1) { // valueFound is a useful when "real" choice has a value equal to allowAny choice default value // so we check only the first value-matc...
javascript
function (value, sendUpdatedEvt) { var checkAny = true, valueFound = false, i, length; for (i = 0, length = this.choicesList.length ; i < length ; i += 1) { // valueFound is a useful when "real" choice has a value equal to allowAny choice default value // so we check only the first value-matc...
[ "function", "(", "value", ",", "sendUpdatedEvt", ")", "{", "var", "checkAny", "=", "true", ",", "valueFound", "=", "false", ",", "i", ",", "length", ";", "for", "(", "i", "=", "0", ",", "length", "=", "this", ".", "choicesList", ".", "length", ";", ...
Set the value of the Radio @param {Any} value The value schould be one of this.options.values (which defaults to this.options.choices if missing) if allowAny option not true. @param {boolean} [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the ...
[ "Set", "the", "value", "of", "the", "Radio" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5933-L5968
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function (sendUpdatedEvt) { if (this.radioAny){ this.anyField.setValue(this.options.allowAny.value, false); } inputEx.RadioField.superclass.clear.call(this, sendUpdatedEvt); }
javascript
function (sendUpdatedEvt) { if (this.radioAny){ this.anyField.setValue(this.options.allowAny.value, false); } inputEx.RadioField.superclass.clear.call(this, sendUpdatedEvt); }
[ "function", "(", "sendUpdatedEvt", ")", "{", "if", "(", "this", ".", "radioAny", ")", "{", "this", ".", "anyField", ".", "setValue", "(", "this", ".", "options", ".", "allowAny", ".", "value", ",", "false", ")", ";", "}", "inputEx", ".", "RadioField", ...
Clear the field by setting the field value to this.options.value @param {boolean} [sendUpdatedEvt] (optional) Wether this clear should fire the updatedEvt or not (default is true, pass false to NOT send the event)
[ "Clear", "the", "field", "by", "setting", "the", "field", "value", "to", "this", ".", "options", ".", "value" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5974-L5981
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function () { var i, length, radioInput; for (i = 0, length = this.choicesList.length ; i < length ; i += 1) { radioInput = this.choicesList[i].node.firstChild; if (radioInput.checked) { // if "any" option checked if (this.radioAny && this.radioAny == radioInput) { ...
javascript
function () { var i, length, radioInput; for (i = 0, length = this.choicesList.length ; i < length ; i += 1) { radioInput = this.choicesList[i].node.firstChild; if (radioInput.checked) { // if "any" option checked if (this.radioAny && this.radioAny == radioInput) { ...
[ "function", "(", ")", "{", "var", "i", ",", "length", ",", "radioInput", ";", "for", "(", "i", "=", "0", ",", "length", "=", "this", ".", "choicesList", ".", "length", ";", "i", "<", "length", ";", "i", "+=", "1", ")", "{", "radioInput", "=", "...
Should return true if empty
[ "Should", "return", "true", "if", "empty" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5986-L6011
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function () { var i, length; for (i = 0, length = this.choicesList.length; i < length; i += 1) { this.disableChoice(this.choicesList[i], false); } }
javascript
function () { var i, length; for (i = 0, length = this.choicesList.length; i < length; i += 1) { this.disableChoice(this.choicesList[i], false); } }
[ "function", "(", ")", "{", "var", "i", ",", "length", ";", "for", "(", "i", "=", "0", ",", "length", "=", "this", ".", "choicesList", ".", "length", ";", "i", "<", "length", ";", "i", "+=", "1", ")", "{", "this", ".", "disableChoice", "(", "thi...
Disable the field
[ "Disable", "the", "field" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L6040-L6048
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function () { var i, length; for (i = 0, length = this.choicesList.length; i < length; i += 1) { this.enableChoice(this.choicesList[i]); } }
javascript
function () { var i, length; for (i = 0, length = this.choicesList.length; i < length; i += 1) { this.enableChoice(this.choicesList[i]); } }
[ "function", "(", ")", "{", "var", "i", ",", "length", ";", "for", "(", "i", "=", "0", ",", "length", "=", "this", ".", "choicesList", ".", "length", ";", "i", "<", "length", ";", "i", "+=", "1", ")", "{", "this", ".", "enableChoice", "(", "this...
Enable the field
[ "Enable", "the", "field" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L6053-L6061
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(val, sendUpdatedEvt) { this.value = val; inputEx.renderVisu(this.options.visu, val, this.fieldContainer); inputEx.UneditableField.superclass.setValue.call(this, val, sendUpdatedEvt); }
javascript
function(val, sendUpdatedEvt) { this.value = val; inputEx.renderVisu(this.options.visu, val, this.fieldContainer); inputEx.UneditableField.superclass.setValue.call(this, val, sendUpdatedEvt); }
[ "function", "(", "val", ",", "sendUpdatedEvt", ")", "{", "this", ".", "value", "=", "val", ";", "inputEx", ".", "renderVisu", "(", "this", ".", "options", ".", "visu", ",", "val", ",", "this", ".", "fieldContainer", ")", ";", "inputEx", ".", "Uneditabl...
Store the value and update the visu @param {Any} val The value that will be sent to the visu @param {boolean} [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)
[ "Store", "the", "value", "and", "update", "the", "visu" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L6834-L6840
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(x, y) { // make the proxy look like the source element var dragEl = this.getDragEl(); var clickEl = this.getEl(); Dom.setStyle(clickEl, "visibility", "hidden"); this._originalIndex = inputEx.indexOf(clickEl ,clickEl.parentNode.childNodes); dragEl.className = clic...
javascript
function(x, y) { // make the proxy look like the source element var dragEl = this.getDragEl(); var clickEl = this.getEl(); Dom.setStyle(clickEl, "visibility", "hidden"); this._originalIndex = inputEx.indexOf(clickEl ,clickEl.parentNode.childNodes); dragEl.className = clic...
[ "function", "(", "x", ",", "y", ")", "{", "// make the proxy look like the source element", "var", "dragEl", "=", "this", ".", "getDragEl", "(", ")", ";", "var", "clickEl", "=", "this", ".", "getEl", "(", ")", ";", "Dom", ".", "setStyle", "(", "clickEl", ...
Create the proxy element
[ "Create", "the", "proxy", "element" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L6984-L6992
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(e) { Dom.setStyle(this.id, "visibility", ""); // Fire the reordered event if position in list has changed var clickEl = this.getEl(); var newIndex = inputEx.indexOf(clickEl ,clickEl.parentNode.childNodes); if(this._originalIndex != newIndex) { this._l...
javascript
function(e) { Dom.setStyle(this.id, "visibility", ""); // Fire the reordered event if position in list has changed var clickEl = this.getEl(); var newIndex = inputEx.indexOf(clickEl ,clickEl.parentNode.childNodes); if(this._originalIndex != newIndex) { this._l...
[ "function", "(", "e", ")", "{", "Dom", ".", "setStyle", "(", "this", ".", "id", ",", "\"visibility\"", ",", "\"\"", ")", ";", "// Fire the reordered event if position in list has changed", "var", "clickEl", "=", "this", ".", "getEl", "(", ")", ";", "var", "n...
Handle the endDrag and eventually fire the listReordered event
[ "Handle", "the", "endDrag", "and", "eventually", "fire", "the", "listReordered", "event" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L6997-L7006
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(e) { var y = Event.getPageY(e); if (y < this.lastY) { this.goingUp = true; } else if (y > this.lastY) { this.goingUp = false; } this.lastY = y; }
javascript
function(e) { var y = Event.getPageY(e); if (y < this.lastY) { this.goingUp = true; } else if (y > this.lastY) { this.goingUp = false; } this.lastY = y; }
[ "function", "(", "e", ")", "{", "var", "y", "=", "Event", ".", "getPageY", "(", "e", ")", ";", "if", "(", "y", "<", "this", ".", "lastY", ")", "{", "this", ".", "goingUp", "=", "true", ";", "}", "else", "if", "(", "y", ">", "this", ".", "la...
Keep track of the direction of the drag for use during onDragOver
[ "Keep", "track", "of", "the", "direction", "of", "the", "drag", "for", "use", "during", "onDragOver" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L7042-L7052
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(i) { var itemValue = this.items[i]; this.ul.removeChild(this.ul.childNodes[i]); this.items[i] = null; this.items = inputEx.compactArray(this.items); return itemValue; }
javascript
function(i) { var itemValue = this.items[i]; this.ul.removeChild(this.ul.childNodes[i]); this.items[i] = null; this.items = inputEx.compactArray(this.items); return itemValue; }
[ "function", "(", "i", ")", "{", "var", "itemValue", "=", "this", ".", "items", "[", "i", "]", ";", "this", ".", "ul", ".", "removeChild", "(", "this", ".", "ul", ".", "childNodes", "[", "i", "]", ")", ";", "this", ".", "items", "[", "i", "]", ...
private method to remove an item @param {Integer} index index of item to be removed @private
[ "private", "method", "to", "remove", "an", "item" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L7173-L7183
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(originalIndex, newIndex) { if(originalIndex < newIndex) { this.items.splice(newIndex+1,0, this.items[originalIndex]); this.items[originalIndex] = null; } else { this.items.splice(newIndex,0, this.items[originalIndex]); this.items[originalIndex+1] = null; ...
javascript
function(originalIndex, newIndex) { if(originalIndex < newIndex) { this.items.splice(newIndex+1,0, this.items[originalIndex]); this.items[originalIndex] = null; } else { this.items.splice(newIndex,0, this.items[originalIndex]); this.items[originalIndex+1] = null; ...
[ "function", "(", "originalIndex", ",", "newIndex", ")", "{", "if", "(", "originalIndex", "<", "newIndex", ")", "{", "this", ".", "items", ".", "splice", "(", "newIndex", "+", "1", ",", "0", ",", "this", ".", "items", "[", "originalIndex", "]", ")", "...
Called by the DDListItem when an item as been moved
[ "Called", "by", "the", "DDListItem", "when", "an", "item", "as", "been", "moved" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L7199-L7211
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(index, item) { this.items[index] = (typeof item == "object") ? item.value : item; this.ul.childNodes[index].childNodes[0].innerHTML = (typeof item == "object") ? item.label : item; }
javascript
function(index, item) { this.items[index] = (typeof item == "object") ? item.value : item; this.ul.childNodes[index].childNodes[0].innerHTML = (typeof item == "object") ? item.label : item; }
[ "function", "(", "index", ",", "item", ")", "{", "this", ".", "items", "[", "index", "]", "=", "(", "typeof", "item", "==", "\"object\"", ")", "?", "item", ".", "value", ":", "item", ";", "this", ".", "ul", ".", "childNodes", "[", "index", "]", "...
Update the value of a given item @param {Integer} index Item index @param {Any} value New value
[ "Update", "the", "value", "of", "a", "given", "item" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L7226-L7229
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function() { var value, position, choice; if (this.el.selectedIndex !== 0) { // Get the selector value value = inputEx.MultiSelectField.superclass.getValue.call(this); position = this.getChoicePosition({ value : value }); choice = this.choicesList[position]; this.ddlist....
javascript
function() { var value, position, choice; if (this.el.selectedIndex !== 0) { // Get the selector value value = inputEx.MultiSelectField.superclass.getValue.call(this); position = this.getChoicePosition({ value : value }); choice = this.choicesList[position]; this.ddlist....
[ "function", "(", ")", "{", "var", "value", ",", "position", ",", "choice", ";", "if", "(", "this", ".", "el", ".", "selectedIndex", "!==", "0", ")", "{", "// Get the selector value", "value", "=", "inputEx", ".", "MultiSelectField", ".", "superclass", ".",...
Add an item to the list when the select changed
[ "Add", "an", "item", "to", "the", "list", "when", "the", "select", "changed" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L7315-L7336
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(sType, aArgs) { var aData = aArgs[2]; var value = lang.isFunction(this.options.returnValue) ? this.options.returnValue(aData) : aData[0]; var label = lang.isFunction(this.options.returnLabel) ? this.options.returnLabel(aData) : value; this.ddlist.addItem({label: label, value: value}); t...
javascript
function(sType, aArgs) { var aData = aArgs[2]; var value = lang.isFunction(this.options.returnValue) ? this.options.returnValue(aData) : aData[0]; var label = lang.isFunction(this.options.returnLabel) ? this.options.returnLabel(aData) : value; this.ddlist.addItem({label: label, value: value}); t...
[ "function", "(", "sType", ",", "aArgs", ")", "{", "var", "aData", "=", "aArgs", "[", "2", "]", ";", "var", "value", "=", "lang", ".", "isFunction", "(", "this", ".", "options", ".", "returnValue", ")", "?", "this", ".", "options", ".", "returnValue",...
Handle item selection in the autocompleter to add it to the list
[ "Handle", "item", "selection", "in", "the", "autocompleter", "to", "add", "it", "to", "the", "list" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L7632-L7639
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function(options) { inputEx.SliderField.superclass.setOptions.call(this, options); this.options.className = options.className ? options.className : 'inputEx-SliderField'; this.options.minValue = lang.isUndefined(options.minValue) ? 0 : options.minValue; this.options.maxValue = lan...
javascript
function(options) { inputEx.SliderField.superclass.setOptions.call(this, options); this.options.className = options.className ? options.className : 'inputEx-SliderField'; this.options.minValue = lang.isUndefined(options.minValue) ? 0 : options.minValue; this.options.maxValue = lan...
[ "function", "(", "options", ")", "{", "inputEx", ".", "SliderField", ".", "superclass", ".", "setOptions", ".", "call", "(", "this", ",", "options", ")", ";", "this", ".", "options", ".", "className", "=", "options", ".", "className", "?", "options", "."...
Set the classname to 'inputEx-SliderField' @param {Object} options Options object as passed to the constructor
[ "Set", "the", "classname", "to", "inputEx", "-", "SliderField" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L7773-L7782
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function() { this.sliderbg = inputEx.cn('div', {id: YAHOO.util.Dom.generateId(), className: 'inputEx-SliderField-bg'}); this.sliderthumb = inputEx.cn('div', {className: 'inputEx-SliderField-thumb'} ); this.sliderbg.appendChild(this.sliderthumb); this.fieldContainer.appendChild...
javascript
function() { this.sliderbg = inputEx.cn('div', {id: YAHOO.util.Dom.generateId(), className: 'inputEx-SliderField-bg'}); this.sliderthumb = inputEx.cn('div', {className: 'inputEx-SliderField-thumb'} ); this.sliderbg.appendChild(this.sliderthumb); this.fieldContainer.appendChild...
[ "function", "(", ")", "{", "this", ".", "sliderbg", "=", "inputEx", ".", "cn", "(", "'div'", ",", "{", "id", ":", "YAHOO", ".", "util", ".", "Dom", ".", "generateId", "(", ")", ",", "className", ":", "'inputEx-SliderField-bg'", "}", ")", ";", "this",...
render a slider widget
[ "render", "a", "slider", "widget" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L7787-L7802
train
neyric/webhookit
public/javascripts/inputex/build/inputex.js
function() { var val = Math.floor(this.options.minValue+(this.options.maxValue-this.options.minValue)*this.slider.getValue()/100); return val; }
javascript
function() { var val = Math.floor(this.options.minValue+(this.options.maxValue-this.options.minValue)*this.slider.getValue()/100); return val; }
[ "function", "(", ")", "{", "var", "val", "=", "Math", ".", "floor", "(", "this", ".", "options", ".", "minValue", "+", "(", "this", ".", "options", ".", "maxValue", "-", "this", ".", "options", ".", "minValue", ")", "*", "this", ".", "slider", ".",...
Get the value from the slider @return {int} The integer value
[ "Get", "the", "value", "from", "the", "slider" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L7845-L7848
train
neyric/webhookit
public/javascripts/yui/tabview/tabview.js
function(attr) { TabView.superclass.initAttributes.call(this, attr); if (!attr.orientation) { attr.orientation = 'top'; } var el = this.get(ELEMENT); if (!Dom.hasClass(el, this.CLASSNAME)) { Dom.addCla...
javascript
function(attr) { TabView.superclass.initAttributes.call(this, attr); if (!attr.orientation) { attr.orientation = 'top'; } var el = this.get(ELEMENT); if (!Dom.hasClass(el, this.CLASSNAME)) { Dom.addCla...
[ "function", "(", "attr", ")", "{", "TabView", ".", "superclass", ".", "initAttributes", ".", "call", "(", "this", ",", "attr", ")", ";", "if", "(", "!", "attr", ".", "orientation", ")", "{", "attr", ".", "orientation", "=", "'top'", ";", "}", "var", ...
setAttributeConfigs TabView specific properties. @method initAttributes @param {Object} attr Hash of initial attributes
[ "setAttributeConfigs", "TabView", "specific", "properties", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/tabview/tabview.js#L260-L392
train
neyric/webhookit
public/javascripts/yui/animation/animation-debug.js
function() { var el = this.getEl() || {}; var id = el.id || el.tagName; return (this.constructor.NAME + ': ' + id); }
javascript
function() { var el = this.getEl() || {}; var id = el.id || el.tagName; return (this.constructor.NAME + ': ' + id); }
[ "function", "(", ")", "{", "var", "el", "=", "this", ".", "getEl", "(", ")", "||", "{", "}", ";", "var", "id", "=", "el", ".", "id", "||", "el", ".", "tagName", ";", "return", "(", "this", ".", "constructor", ".", "NAME", "+", "': '", "+", "i...
Provides a readable name for the Anim instance. @method toString @return {String}
[ "Provides", "a", "readable", "name", "for", "the", "Anim", "instance", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/animation/animation-debug.js#L59-L63
train
neyric/webhookit
public/javascripts/yui/animation/animation-debug.js
function(attr, val, unit) { var el = this.getEl(); if ( this.patterns.noNegatives.test(attr) ) { val = (val > 0) ? val : 0; } if (attr in el && !('style' in el && attr in el.style)) { el[attr] = val; } else { Y.Dom.setStyle(el, attr, val + uni...
javascript
function(attr, val, unit) { var el = this.getEl(); if ( this.patterns.noNegatives.test(attr) ) { val = (val > 0) ? val : 0; } if (attr in el && !('style' in el && attr in el.style)) { el[attr] = val; } else { Y.Dom.setStyle(el, attr, val + uni...
[ "function", "(", "attr", ",", "val", ",", "unit", ")", "{", "var", "el", "=", "this", ".", "getEl", "(", ")", ";", "if", "(", "this", ".", "patterns", ".", "noNegatives", ".", "test", "(", "attr", ")", ")", "{", "val", "=", "(", "val", ">", "...
Applies a value to an attribute. @method setAttribute @param {String} attr The name of the attribute. @param {Number} val The value to be applied to the attribute. @param {String} unit The unit ('px', '%', etc.) of the value.
[ "Applies", "a", "value", "to", "an", "attribute", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/animation/animation-debug.js#L91-L102
train
neyric/webhookit
public/javascripts/yui/animation/animation-debug.js
function(attr) { var el = this.getEl(); var val = Y.Dom.getStyle(el, attr); if (val !== 'auto' && !this.patterns.offsetUnit.test(val)) { return parseFloat(val); } var a = this.patterns.offsetAttribute.exec(attr) || []; var pos = !!( a[3] ); // top or...
javascript
function(attr) { var el = this.getEl(); var val = Y.Dom.getStyle(el, attr); if (val !== 'auto' && !this.patterns.offsetUnit.test(val)) { return parseFloat(val); } var a = this.patterns.offsetAttribute.exec(attr) || []; var pos = !!( a[3] ); // top or...
[ "function", "(", "attr", ")", "{", "var", "el", "=", "this", ".", "getEl", "(", ")", ";", "var", "val", "=", "Y", ".", "Dom", ".", "getStyle", "(", "el", ",", "attr", ")", ";", "if", "(", "val", "!==", "'auto'", "&&", "!", "this", ".", "patte...
Returns current value of the attribute. @method getAttribute @param {String} attr The name of the attribute. @return {Number} val The current value of the attribute.
[ "Returns", "current", "value", "of", "the", "attribute", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/animation/animation-debug.js#L110-L134
train
neyric/webhookit
public/javascripts/yui/animation/animation-debug.js
function(attr) { var start; var end; var attributes = this.attributes; this.runtimeAttributes[attr] = {}; var isset = function(prop) { return (typeof prop !== 'undefined'); }; if ( !isset(attributes[attr]['to']) && !isset(attributes[...
javascript
function(attr) { var start; var end; var attributes = this.attributes; this.runtimeAttributes[attr] = {}; var isset = function(prop) { return (typeof prop !== 'undefined'); }; if ( !isset(attributes[attr]['to']) && !isset(attributes[...
[ "function", "(", "attr", ")", "{", "var", "start", ";", "var", "end", ";", "var", "attributes", "=", "this", ".", "attributes", ";", "this", ".", "runtimeAttributes", "[", "attr", "]", "=", "{", "}", ";", "var", "isset", "=", "function", "(", "prop",...
Sets the actual values to be used during the animation. Should only be needed for subclass use. @method setRuntimeAttribute @param {Object} attr The attribute object @private
[ "Sets", "the", "actual", "values", "to", "be", "used", "during", "the", "animation", ".", "Should", "only", "be", "needed", "for", "subclass", "use", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/animation/animation-debug.js#L156-L194
train
neyric/webhookit
public/javascripts/yui/animation/animation-debug.js
function(tween) { var frames = tween.totalFrames; var frame = tween.currentFrame; var expected = (tween.currentFrame * tween.duration * 1000 / tween.totalFrames); var elapsed = (new Date() - tween.getStartTime()); var tweak = 0; if (elapsed < tween.duration * 100...
javascript
function(tween) { var frames = tween.totalFrames; var frame = tween.currentFrame; var expected = (tween.currentFrame * tween.duration * 1000 / tween.totalFrames); var elapsed = (new Date() - tween.getStartTime()); var tweak = 0; if (elapsed < tween.duration * 100...
[ "function", "(", "tween", ")", "{", "var", "frames", "=", "tween", ".", "totalFrames", ";", "var", "frame", "=", "tween", ".", "currentFrame", ";", "var", "expected", "=", "(", "tween", ".", "currentFrame", "*", "tween", ".", "duration", "*", "1000", "...
On the fly frame correction to keep animation on time. @method correctFrame @private @param {Object} tween The Anim instance being corrected.
[ "On", "the", "fly", "frame", "correction", "to", "keep", "animation", "on", "time", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/animation/animation-debug.js#L635-L654
train
neyric/webhookit
public/javascripts/yui/animation/animation-debug.js
function (t, b, c, d) { return c - YAHOO.util.Easing.bounceOut(d-t, 0, c, d) + b; }
javascript
function (t, b, c, d) { return c - YAHOO.util.Easing.bounceOut(d-t, 0, c, d) + b; }
[ "function", "(", "t", ",", "b", ",", "c", ",", "d", ")", "{", "return", "c", "-", "YAHOO", ".", "util", ".", "Easing", ".", "bounceOut", "(", "d", "-", "t", ",", "0", ",", "c", ",", "d", ")", "+", "b", ";", "}" ]
Bounce off of start. @method bounceIn @param {Number} t Time value used to compute current value @param {Number} b Starting value @param {Number} c Delta between start and end values @param {Number} d Total length of animation @return {Number} The computed value for the current animation frame
[ "Bounce", "off", "of", "start", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/animation/animation-debug.js#L1124-L1126
train
neyric/webhookit
public/javascripts/yui/animation/animation-debug.js
function (t, b, c, d) { if (t < d/2) { return YAHOO.util.Easing.bounceIn(t*2, 0, c, d) * .5 + b; } return YAHOO.util.Easing.bounceOut(t*2-d, 0, c, d) * .5 + c*.5 + b; }
javascript
function (t, b, c, d) { if (t < d/2) { return YAHOO.util.Easing.bounceIn(t*2, 0, c, d) * .5 + b; } return YAHOO.util.Easing.bounceOut(t*2-d, 0, c, d) * .5 + c*.5 + b; }
[ "function", "(", "t", ",", "b", ",", "c", ",", "d", ")", "{", "if", "(", "t", "<", "d", "/", "2", ")", "{", "return", "YAHOO", ".", "util", ".", "Easing", ".", "bounceIn", "(", "t", "*", "2", ",", "0", ",", "c", ",", "d", ")", "*", ".5"...
Bounces off start and end. @method bounceBoth @param {Number} t Time value used to compute current value @param {Number} b Starting value @param {Number} c Delta between start and end values @param {Number} d Total length of animation @return {Number} The computed value for the current animation frame
[ "Bounces", "off", "start", "and", "end", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/animation/animation-debug.js#L1157-L1162
train
neyric/webhookit
public/javascripts/yui/profilerviewer/profilerviewer.js
function(n) { var a = (n === Math.floor(n)) ? n : (Math.round(n*1000))/1000; return (a + " " + YAHOO.widget.ProfilerViewer.STRINGS.millisecondsAbbrev); }
javascript
function(n) { var a = (n === Math.floor(n)) ? n : (Math.round(n*1000))/1000; return (a + " " + YAHOO.widget.ProfilerViewer.STRINGS.millisecondsAbbrev); }
[ "function", "(", "n", ")", "{", "var", "a", "=", "(", "n", "===", "Math", ".", "floor", "(", "n", ")", ")", "?", "n", ":", "(", "Math", ".", "round", "(", "n", "*", "1000", ")", ")", "/", "1000", ";", "return", "(", "a", "+", "\" \"", "+"...
Function used to format numbers in milliseconds for chart; must be publicly accessible, per Charts spec. @static @property timeAxisLabelFunction @type function @private
[ "Function", "used", "to", "format", "numbers", "in", "milliseconds", "for", "chart", ";", "must", "be", "publicly", "accessible", "per", "Charts", "spec", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/profilerviewer/profilerviewer.js#L169-L172
train
neyric/webhookit
public/javascripts/yui/profilerviewer/profilerviewer.js
function(n) { var a = (n === Math.floor(n)) ? n : (Math.round(n*100))/100; return (a + "%"); }
javascript
function(n) { var a = (n === Math.floor(n)) ? n : (Math.round(n*100))/100; return (a + "%"); }
[ "function", "(", "n", ")", "{", "var", "a", "=", "(", "n", "===", "Math", ".", "floor", "(", "n", ")", ")", "?", "n", ":", "(", "Math", ".", "round", "(", "n", "*", "100", ")", ")", "/", "100", ";", "return", "(", "a", "+", "\"%\"", ")", ...
Function used to format percent numbers for chart; must be publicly accessible, per Charts spec. @static @property percentAxisLabelFunction @type function @private
[ "Function", "used", "to", "format", "percent", "numbers", "for", "chart", ";", "must", "be", "publicly", "accessible", "per", "Charts", "spec", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/profilerviewer/profilerviewer.js#L182-L185
train
neyric/webhookit
public/javascripts/yui/profilerviewer/profilerviewer.js
function(arr){ var ct = 0; for(var i = 0; i < arr.length; ct+=arr[i++]){} return ct; }
javascript
function(arr){ var ct = 0; for(var i = 0; i < arr.length; ct+=arr[i++]){} return ct; }
[ "function", "(", "arr", ")", "{", "var", "ct", "=", "0", ";", "for", "(", "var", "i", "=", "0", ";", "i", "<", "arr", ".", "length", ";", "ct", "+=", "arr", "[", "i", "++", "]", ")", "{", "}", "return", "ct", ";", "}" ]
Utility function for array sums. @method _arraySum @private
[ "Utility", "function", "for", "array", "sums", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/profilerviewer/profilerviewer.js#L599-L603
train
neyric/webhookit
public/javascripts/yui/profilerviewer/profilerviewer.js
function(elCell, oRecord, oColumn, oData) { var a = (oData === Math.floor(oData)) ? oData : (Math.round(oData*1000))/1000; elCell.innerHTML = a + " " + PV.STRINGS.millisecondsAbbrev; }
javascript
function(elCell, oRecord, oColumn, oData) { var a = (oData === Math.floor(oData)) ? oData : (Math.round(oData*1000))/1000; elCell.innerHTML = a + " " + PV.STRINGS.millisecondsAbbrev; }
[ "function", "(", "elCell", ",", "oRecord", ",", "oColumn", ",", "oData", ")", "{", "var", "a", "=", "(", "oData", "===", "Math", ".", "floor", "(", "oData", ")", ")", "?", "oData", ":", "(", "Math", ".", "round", "(", "oData", "*", "1000", ")", ...
Set up the DataTable.
[ "Set", "up", "the", "DataTable", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/profilerviewer/profilerviewer.js#L680-L683
train
neyric/webhookit
public/javascripts/inputex/js/rpc/yql.js
function(yql, callback) { var ud = 'yqlexecuteconsole'+(inputEx.YQL.query_index)++, API = 'http://query.yahooapis.com/v1/public/yql?q=', url = API + window.encodeURIComponent(yql) + '&format=json&diagnostics=true&callback=' + ud; window[ud]= function(o){ callback && callback(o); }; document.b...
javascript
function(yql, callback) { var ud = 'yqlexecuteconsole'+(inputEx.YQL.query_index)++, API = 'http://query.yahooapis.com/v1/public/yql?q=', url = API + window.encodeURIComponent(yql) + '&format=json&diagnostics=true&callback=' + ud; window[ud]= function(o){ callback && callback(o); }; document.b...
[ "function", "(", "yql", ",", "callback", ")", "{", "var", "ud", "=", "'yqlexecuteconsole'", "+", "(", "inputEx", ".", "YQL", ".", "query_index", ")", "++", ",", "API", "=", "'http://query.yahooapis.com/v1/public/yql?q='", ",", "url", "=", "API", "+", "window...
Generate the jsonp request to YQL @param {String} yql YQL query string @param {Function} callback Callback function
[ "Generate", "the", "jsonp", "request", "to", "YQL" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/js/rpc/yql.js#L25-L36
train
neyric/webhookit
public/javascripts/inputex/js/rpc/yql.js
function(codeUrl, callback) { var url = ("http://javascript.neyric.com/yql/js.php?url="+window.encodeURIComponent(codeUrl)).replace(new RegExp("'","g"),"\\'"); var yql = "use '"+url+"' as yqlexconsole; select * from yqlexconsole;"; inputEx.YQL.query(yql,callback); }
javascript
function(codeUrl, callback) { var url = ("http://javascript.neyric.com/yql/js.php?url="+window.encodeURIComponent(codeUrl)).replace(new RegExp("'","g"),"\\'"); var yql = "use '"+url+"' as yqlexconsole; select * from yqlexconsole;"; inputEx.YQL.query(yql,callback); }
[ "function", "(", "codeUrl", ",", "callback", ")", "{", "var", "url", "=", "(", "\"http://javascript.neyric.com/yql/js.php?url=\"", "+", "window", ".", "encodeURIComponent", "(", "codeUrl", ")", ")", ".", "replace", "(", "new", "RegExp", "(", "\"'\"", ",", "\"g...
Dynamically build a XML from a URL and generate a dummy request for YQL @param {String} codeUrl Url to a YQL-execute javascript file @param {Function} callback Callback function
[ "Dynamically", "build", "a", "XML", "from", "a", "URL", "and", "generate", "a", "dummy", "request", "for", "YQL" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/js/rpc/yql.js#L54-L58
train
neyric/webhookit
public/javascripts/yui/yuiloader/yuiloader.js
function(r, s) { if (!s||!r) { throw new Error("Augment failed, verify dependencies."); } //var a=[].concat(arguments); var a=[r.prototype,s.prototype], i; for (i=2;i<arguments.length;i=i+1) { a.push(arguments[i]); } L.augmentObject.apply(t...
javascript
function(r, s) { if (!s||!r) { throw new Error("Augment failed, verify dependencies."); } //var a=[].concat(arguments); var a=[r.prototype,s.prototype], i; for (i=2;i<arguments.length;i=i+1) { a.push(arguments[i]); } L.augmentObject.apply(t...
[ "function", "(", "r", ",", "s", ")", "{", "if", "(", "!", "s", "||", "!", "r", ")", "{", "throw", "new", "Error", "(", "\"Augment failed, verify dependencies.\"", ")", ";", "}", "//var a=[].concat(arguments);", "var", "a", "=", "[", "r", ".", "prototype"...
Same as YAHOO.lang.augmentObject, except it only applies prototype properties @see YAHOO.lang.augmentObject @method augmentProto @static @param {Function} r the object to receive the augmentation @param {Function} s the object that supplies the properties to augment @param {String*|boolean} arguments zero or more pr...
[ "Same", "as", "YAHOO", ".", "lang", ".", "augmentObject", "except", "it", "only", "applies", "prototype", "properties" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L705-L715
train
neyric/webhookit
public/javascripts/yui/yuiloader/yuiloader.js
function(o, d) { var i,len,s=[],OBJ="{...}",FUN="f(){...}", COMMA=', ', ARROW=' => '; // Cast non-objects to string // Skip dates because the std toString is what we want // Skip HTMLElement-like objects because trying to dump // an element will cause an unhandled e...
javascript
function(o, d) { var i,len,s=[],OBJ="{...}",FUN="f(){...}", COMMA=', ', ARROW=' => '; // Cast non-objects to string // Skip dates because the std toString is what we want // Skip HTMLElement-like objects because trying to dump // an element will cause an unhandled e...
[ "function", "(", "o", ",", "d", ")", "{", "var", "i", ",", "len", ",", "s", "=", "[", "]", ",", "OBJ", "=", "\"{...}\"", ",", "FUN", "=", "\"f(){...}\"", ",", "COMMA", "=", "', '", ",", "ARROW", "=", "' => '", ";", "// Cast non-objects to string", ...
Returns a simple string representation of the object or array. Other types of objects will be returned unprocessed. Arrays are expected to be indexed. Use object notation for associative arrays. @method dump @since 2.3.0 @param o {Object} The object to dump @param d {int} How deep to recurse child objects, default 3 ...
[ "Returns", "a", "simple", "string", "representation", "of", "the", "object", "or", "array", ".", "Other", "types", "of", "objects", "will", "be", "returned", "unprocessed", ".", "Arrays", "are", "expected", "to", "be", "indexed", ".", "Use", "object", "notat...
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L729-L784
train
neyric/webhookit
public/javascripts/yui/yuiloader/yuiloader.js
function() { var o={}, a=arguments, l=a.length, i; for (i=0; i<l; i=i+1) { L.augmentObject(o, a[i], true); } return o; }
javascript
function() { var o={}, a=arguments, l=a.length, i; for (i=0; i<l; i=i+1) { L.augmentObject(o, a[i], true); } return o; }
[ "function", "(", ")", "{", "var", "o", "=", "{", "}", ",", "a", "=", "arguments", ",", "l", "=", "a", ".", "length", ",", "i", ";", "for", "(", "i", "=", "0", ";", "i", "<", "l", ";", "i", "=", "i", "+", "1", ")", "{", "L", ".", "augm...
Returns a new object containing all of the properties of all the supplied objects. The properties from later objects will overwrite those in earlier objects. @method merge @since 2.3.0 @param arguments {Object*} the objects to merge @return the new merged object
[ "Returns", "a", "new", "object", "containing", "all", "of", "the", "properties", "of", "all", "the", "supplied", "objects", ".", "The", "properties", "from", "later", "objects", "will", "overwrite", "those", "in", "earlier", "objects", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L912-L918
train
neyric/webhookit
public/javascripts/yui/yuiloader/yuiloader.js
function(when, o, fn, data, periodic) { when = when || 0; o = o || {}; var m=fn, d=data, f, r; if (L.isString(fn)) { m = o[fn]; } if (!m) { throw new TypeError("method undefined"); } if (d && !L.isArray(d)) { d = [da...
javascript
function(when, o, fn, data, periodic) { when = when || 0; o = o || {}; var m=fn, d=data, f, r; if (L.isString(fn)) { m = o[fn]; } if (!m) { throw new TypeError("method undefined"); } if (d && !L.isArray(d)) { d = [da...
[ "function", "(", "when", ",", "o", ",", "fn", ",", "data", ",", "periodic", ")", "{", "when", "=", "when", "||", "0", ";", "o", "=", "o", "||", "{", "}", ";", "var", "m", "=", "fn", ",", "d", "=", "data", ",", "f", ",", "r", ";", "if", ...
Executes the supplied function in the context of the supplied object 'when' milliseconds later. Executes the function a single time unless periodic is set to true. @method later @since 2.4.0 @param when {int} the number of milliseconds to wait until the fn is executed @param o the context object @param fn {Function|St...
[ "Executes", "the", "supplied", "function", "in", "the", "context", "of", "the", "supplied", "object", "when", "milliseconds", "later", ".", "Executes", "the", "function", "a", "single", "time", "unless", "periodic", "is", "set", "to", "true", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L941-L974
train
neyric/webhookit
public/javascripts/yui/yuiloader/yuiloader.js
function(type, attr, win) { var w = win || window, d=w.document, n=d.createElement(type); for (var i in attr) { if (attr[i] && YAHOO.lang.hasOwnProperty(attr, i)) { n.setAttribute(i, attr[i]); } } return n; }
javascript
function(type, attr, win) { var w = win || window, d=w.document, n=d.createElement(type); for (var i in attr) { if (attr[i] && YAHOO.lang.hasOwnProperty(attr, i)) { n.setAttribute(i, attr[i]); } } return n; }
[ "function", "(", "type", ",", "attr", ",", "win", ")", "{", "var", "w", "=", "win", "||", "window", ",", "d", "=", "w", ".", "document", ",", "n", "=", "d", ".", "createElement", "(", "type", ")", ";", "for", "(", "var", "i", "in", "attr", ")...
Generates an HTML element, this is not appended to a document @method _node @param type {string} the type of element @param attr {string} the attributes @param win {Window} optional window to create the element in @return {HTMLElement} the generated node @private
[ "Generates", "an", "HTML", "element", "this", "is", "not", "appended", "to", "a", "document" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L1139-L1149
train
neyric/webhookit
public/javascripts/yui/yuiloader/yuiloader.js
function(url, win, attributes) { var o = { id: "yui__dyn_" + (nidx++), type: "text/css", rel: "stylesheet", href: url }; if (attributes) { lang.augmentObject(o, attributes); } return _node("link", o, win); }
javascript
function(url, win, attributes) { var o = { id: "yui__dyn_" + (nidx++), type: "text/css", rel: "stylesheet", href: url }; if (attributes) { lang.augmentObject(o, attributes); } return _node("link", o, win); }
[ "function", "(", "url", ",", "win", ",", "attributes", ")", "{", "var", "o", "=", "{", "id", ":", "\"yui__dyn_\"", "+", "(", "nidx", "++", ")", ",", "type", ":", "\"text/css\"", ",", "rel", ":", "\"stylesheet\"", ",", "href", ":", "url", "}", ";", ...
Generates a link node @method _linkNode @param url {string} the url for the css file @param win {Window} optional window to create the node in @return {HTMLElement} the generated node @private
[ "Generates", "a", "link", "node" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L1159-L1173
train
neyric/webhookit
public/javascripts/yui/yuiloader/yuiloader.js
function(url, win, attributes) { var o = { id: "yui__dyn_" + (nidx++), type: "text/javascript", src: url }; if (attributes) { lang.augmentObject(o, attributes); } return _node("script", o, win); }
javascript
function(url, win, attributes) { var o = { id: "yui__dyn_" + (nidx++), type: "text/javascript", src: url }; if (attributes) { lang.augmentObject(o, attributes); } return _node("script", o, win); }
[ "function", "(", "url", ",", "win", ",", "attributes", ")", "{", "var", "o", "=", "{", "id", ":", "\"yui__dyn_\"", "+", "(", "nidx", "++", ")", ",", "type", ":", "\"text/javascript\"", ",", "src", ":", "url", "}", ";", "if", "(", "attributes", ")",...
Generates a script node @method _scriptNode @param url {string} the url for the script file @param win {Window} optional window to create the node in @return {HTMLElement} the generated node @private
[ "Generates", "a", "script", "node" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L1183-L1195
train
neyric/webhookit
public/javascripts/yui/yuiloader/yuiloader.js
function(q, msg) { return { tId: q.tId, win: q.win, data: q.data, nodes: q.nodes, msg: msg, purge: function() { _purge(this.tId); } }; }
javascript
function(q, msg) { return { tId: q.tId, win: q.win, data: q.data, nodes: q.nodes, msg: msg, purge: function() { _purge(this.tId); } }; }
[ "function", "(", "q", ",", "msg", ")", "{", "return", "{", "tId", ":", "q", ".", "tId", ",", "win", ":", "q", ".", "win", ",", "data", ":", "q", ".", "data", ",", "nodes", ":", "q", ".", "nodes", ",", "msg", ":", "msg", ",", "purge", ":", ...
Returns the data payload for callback functions @method _returnData @private
[ "Returns", "the", "data", "payload", "for", "callback", "functions" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L1202-L1213
train
neyric/webhookit
public/javascripts/yui/yuiloader/yuiloader.js
function(id) { var q = queues[id]; q.finished = true; if (q.aborted) { var msg = "transaction " + id + " was aborted"; _fail(id, msg); return; } // execute success callback if (q.onSuccess) { var sc=q.scope || q.win; ...
javascript
function(id) { var q = queues[id]; q.finished = true; if (q.aborted) { var msg = "transaction " + id + " was aborted"; _fail(id, msg); return; } // execute success callback if (q.onSuccess) { var sc=q.scope || q.win; ...
[ "function", "(", "id", ")", "{", "var", "q", "=", "queues", "[", "id", "]", ";", "q", ".", "finished", "=", "true", ";", "if", "(", "q", ".", "aborted", ")", "{", "var", "msg", "=", "\"transaction \"", "+", "id", "+", "\" was aborted\"", ";", "_f...
The request is complete, so executing the requester's callback @method _finish @param id {string} the id of the request @private
[ "The", "request", "is", "complete", "so", "executing", "the", "requester", "s", "callback" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L1248-L1263
train
neyric/webhookit
public/javascripts/yui/yuiloader/yuiloader.js
function(id, loaded) { var q = queues[id]; if (q.timer) { // Y.log('cancel timer'); q.timer.cancel(); } if (q.aborted) { var msg = "transaction " + id + " was aborted"; _fail(id, msg); return; } if (loaded) { ...
javascript
function(id, loaded) { var q = queues[id]; if (q.timer) { // Y.log('cancel timer'); q.timer.cancel(); } if (q.aborted) { var msg = "transaction " + id + " was aborted"; _fail(id, msg); return; } if (loaded) { ...
[ "function", "(", "id", ",", "loaded", ")", "{", "var", "q", "=", "queues", "[", "id", "]", ";", "if", "(", "q", ".", "timer", ")", "{", "// Y.log('cancel timer');", "q", ".", "timer", ".", "cancel", "(", ")", ";", "}", "if", "(", "q", ".", "abo...
Loads the next item for a given request @method _next @param id {string} the id of the request @param loaded {string} the url that was just loaded, if any @private
[ "Loads", "the", "next", "item", "for", "a", "given", "request" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L1286-L1385
train
neyric/webhookit
public/javascripts/yui/yuiloader/yuiloader.js
function() { if (purging) { return; } purging = true; for (var i in queues) { var q = queues[i]; if (q.autopurge && q.finished) { _purge(q.tId); delete queues[i]; } } purging = false; }
javascript
function() { if (purging) { return; } purging = true; for (var i in queues) { var q = queues[i]; if (q.autopurge && q.finished) { _purge(q.tId); delete queues[i]; } } purging = false; }
[ "function", "(", ")", "{", "if", "(", "purging", ")", "{", "return", ";", "}", "purging", "=", "true", ";", "for", "(", "var", "i", "in", "queues", ")", "{", "var", "q", "=", "queues", "[", "i", "]", ";", "if", "(", "q", ".", "autopurge", "&&...
Removes processed queues and corresponding nodes @method _autoPurge @private
[ "Removes", "processed", "queues", "and", "corresponding", "nodes" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L1392-L1408
train
neyric/webhookit
public/javascripts/yui/yuiloader/yuiloader.js
function(tId) { if (queues[tId]) { var q = queues[tId], nodes = q.nodes, l = nodes.length, d = q.win.document, h = d.getElementsByTagName("head")[0], sib, i, node, attr; if (q.insertBefor...
javascript
function(tId) { if (queues[tId]) { var q = queues[tId], nodes = q.nodes, l = nodes.length, d = q.win.document, h = d.getElementsByTagName("head")[0], sib, i, node, attr; if (q.insertBefor...
[ "function", "(", "tId", ")", "{", "if", "(", "queues", "[", "tId", "]", ")", "{", "var", "q", "=", "queues", "[", "tId", "]", ",", "nodes", "=", "q", ".", "nodes", ",", "l", "=", "nodes", ".", "length", ",", "d", "=", "q", ".", "win", ".", ...
Removes the nodes for the specified queue @method _purge @private
[ "Removes", "the", "nodes", "for", "the", "specified", "queue" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L1415-L1447
train
neyric/webhookit
public/javascripts/yui/yuiloader/yuiloader.js
function(type, url, opts) { var id = "q" + (qidx++); opts = opts || {}; if (qidx % YAHOO.util.Get.PURGE_THRESH === 0) { _autoPurge(); } queues[id] = lang.merge(opts, { tId: id, type: type, url: url, finished: false, ...
javascript
function(type, url, opts) { var id = "q" + (qidx++); opts = opts || {}; if (qidx % YAHOO.util.Get.PURGE_THRESH === 0) { _autoPurge(); } queues[id] = lang.merge(opts, { tId: id, type: type, url: url, finished: false, ...
[ "function", "(", "type", ",", "url", ",", "opts", ")", "{", "var", "id", "=", "\"q\"", "+", "(", "qidx", "++", ")", ";", "opts", "=", "opts", "||", "{", "}", ";", "if", "(", "qidx", "%", "YAHOO", ".", "util", ".", "Get", ".", "PURGE_THRESH", ...
Saves the state for the request and begins loading the requested urls @method queue @param type {string} the type of node to insert @param url {string} the url to load @param opts the hash of options for this request @private
[ "Saves", "the", "state", "for", "the", "request", "and", "begins", "loading", "the", "requested", "urls" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L1458-L1492
train
neyric/webhookit
public/javascripts/yui/yuiloader/yuiloader.js
function(type, n, id, url, win, qlength, trackfn) { var f = trackfn || _next; // IE supports the readystatechange event for script and css nodes if (ua.ie) { n.onreadystatechange = function() { var rs = this.readyState; if ("loaded" === rs || "complet...
javascript
function(type, n, id, url, win, qlength, trackfn) { var f = trackfn || _next; // IE supports the readystatechange event for script and css nodes if (ua.ie) { n.onreadystatechange = function() { var rs = this.readyState; if ("loaded" === rs || "complet...
[ "function", "(", "type", ",", "n", ",", "id", ",", "url", ",", "win", ",", "qlength", ",", "trackfn", ")", "{", "var", "f", "=", "trackfn", "||", "_next", ";", "// IE supports the readystatechange event for script and css nodes", "if", "(", "ua", ".", "ie", ...
Detects when a node has been loaded. In the case of script nodes, this does not guarantee that contained script is ready to use. @method _track @param type {string} the type of node to track @param n {HTMLElement} the node to track @param id {string} the id of the request @param url {string} the url that is being load...
[ "Detects", "when", "a", "node", "has", "been", "loaded", ".", "In", "the", "case", "of", "script", "nodes", "this", "does", "not", "guarantee", "that", "contained", "script", "is", "ready", "to", "use", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L1510-L1588
train
neyric/webhookit
public/javascripts/yui/yuiloader/yuiloader.js
function(mm) { if (!done[mm]) { // Y.log(name + ' provides worker trying: ' + mm); done[mm] = true; // we always want the return value normal behavior // (provides) for superseded modules. lang.augmentOb...
javascript
function(mm) { if (!done[mm]) { // Y.log(name + ' provides worker trying: ' + mm); done[mm] = true; // we always want the return value normal behavior // (provides) for superseded modules. lang.augmentOb...
[ "function", "(", "mm", ")", "{", "if", "(", "!", "done", "[", "mm", "]", ")", "{", "// Y.log(name + ' provides worker trying: ' + mm);", "done", "[", "mm", "]", "=", "true", ";", "// we always want the return value normal behavior ", "// (provides) for superseded module...
use worker to break cycles
[ "use", "worker", "to", "break", "cycles" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L2881-L2893
train
neyric/webhookit
public/javascripts/yui/yuiloader/yuiloader.js
function(o) { if (o || this.dirty) { this._config(o); this._setup(); this._explode(); // this._skin(); // deprecated if (this.allowRollup) { this._rollup(); } this._reduce(); ...
javascript
function(o) { if (o || this.dirty) { this._config(o); this._setup(); this._explode(); // this._skin(); // deprecated if (this.allowRollup) { this._rollup(); } this._reduce(); ...
[ "function", "(", "o", ")", "{", "if", "(", "o", "||", "this", ".", "dirty", ")", "{", "this", ".", "_config", "(", "o", ")", ";", "this", ".", "_setup", "(", ")", ";", "this", ".", "_explode", "(", ")", ";", "// this._skin(); // deprecated", "if", ...
Calculates the dependency tree, the result is stored in the sorted property @method calculate @param o optional options object
[ "Calculates", "the", "dependency", "tree", "the", "result", "is", "stored", "in", "the", "sorted", "property" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L2921-L2937
train
neyric/webhookit
public/javascripts/yui/yuiloader/yuiloader.js
function(aa, bb) { var mm=info[aa]; if (loaded[bb] || !mm) { return false; } var ii, rr = mm.expanded, after = mm.after, other = info[bb], optional = ...
javascript
function(aa, bb) { var mm=info[aa]; if (loaded[bb] || !mm) { return false; } var ii, rr = mm.expanded, after = mm.after, other = info[bb], optional = ...
[ "function", "(", "aa", ",", "bb", ")", "{", "var", "mm", "=", "info", "[", "aa", "]", ";", "if", "(", "loaded", "[", "bb", "]", "||", "!", "mm", ")", "{", "return", "false", ";", "}", "var", "ii", ",", "rr", "=", "mm", ".", "expanded", ",",...
returns true if b is not loaded, and is required directly or by means of modules it supersedes.
[ "returns", "true", "if", "b", "is", "not", "loaded", "and", "is", "required", "directly", "or", "by", "means", "of", "modules", "it", "supersedes", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L3276-L3332
train
neyric/webhookit
public/javascripts/yui/yuiloader/yuiloader.js
function(str) { var f = this.filter; return (f) ? str.replace(new RegExp(f.searchExp, 'g'), f.replaceStr) : str; }
javascript
function(str) { var f = this.filter; return (f) ? str.replace(new RegExp(f.searchExp, 'g'), f.replaceStr) : str; }
[ "function", "(", "str", ")", "{", "var", "f", "=", "this", ".", "filter", ";", "return", "(", "f", ")", "?", "str", ".", "replace", "(", "new", "RegExp", "(", "f", ".", "searchExp", ",", "'g'", ")", ",", "f", ".", "replaceStr", ")", ":", "str",...
Applies filter method _filter @return {string} the filtered string @private
[ "Applies", "filter", "method", "_filter" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L3859-L3862
train
neyric/webhookit
public/javascripts/inputex/js/fields/SelectTwiceField.js
function () { var i, j, ilength, jlength, currentSubChoices, currentSubChoice, currentValue, testValue, isDuplicateChoice, secondSelectChoices; // object used in updateSecondSelectChoices // // * key : string representing a value in 1st select // * value : array of values availab...
javascript
function () { var i, j, ilength, jlength, currentSubChoices, currentSubChoice, currentValue, testValue, isDuplicateChoice, secondSelectChoices; // object used in updateSecondSelectChoices // // * key : string representing a value in 1st select // * value : array of values availab...
[ "function", "(", ")", "{", "var", "i", ",", "j", ",", "ilength", ",", "jlength", ",", "currentSubChoices", ",", "currentSubChoice", ",", "currentValue", ",", "testValue", ",", "isDuplicateChoice", ",", "secondSelectChoices", ";", "// object used in updateSecondSelec...
Build two select fields
[ "Build", "two", "select", "fields" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/js/fields/SelectTwiceField.js#L46-L106
train
neyric/webhookit
public/javascripts/inputex/js/fields/SelectTwiceField.js
function() { var i, length, choicesList, secondSelectValues, testValue; // allowed values in second select secondSelectValues = this.valuesMatching[this.selects[0].getValue()]; // all choices in second select choicesList = this.selects[1].choicesList; for (i = 0, length = choicesList.l...
javascript
function() { var i, length, choicesList, secondSelectValues, testValue; // allowed values in second select secondSelectValues = this.valuesMatching[this.selects[0].getValue()]; // all choices in second select choicesList = this.selects[1].choicesList; for (i = 0, length = choicesList.l...
[ "function", "(", ")", "{", "var", "i", ",", "length", ",", "choicesList", ",", "secondSelectValues", ",", "testValue", ";", "// allowed values in second select", "secondSelectValues", "=", "this", ".", "valuesMatching", "[", "this", ".", "selects", "[", "0", "]"...
adapt choices of 2nd select relatively to 1st select value
[ "adapt", "choices", "of", "2nd", "select", "relatively", "to", "1st", "select", "value" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/js/fields/SelectTwiceField.js#L137-L159
train
neyric/webhookit
public/javascripts/inputex/js/fields/SelectTwiceField.js
function() { // if the field is empty : if( this.getValue() === this.options.valueSeparator ) { return this.options.required ? inputEx.stateRequired : inputEx.stateEmpty; } return this.validate() ? inputEx.stateValid : inputEx.stateInvalid; }
javascript
function() { // if the field is empty : if( this.getValue() === this.options.valueSeparator ) { return this.options.required ? inputEx.stateRequired : inputEx.stateEmpty; } return this.validate() ? inputEx.stateValid : inputEx.stateInvalid; }
[ "function", "(", ")", "{", "// if the field is empty :", "if", "(", "this", ".", "getValue", "(", ")", "===", "this", ".", "options", ".", "valueSeparator", ")", "{", "return", "this", ".", "options", ".", "required", "?", "inputEx", ".", "stateRequired", ...
HACK because empty state value is this.options.valueSeparator
[ "HACK", "because", "empty", "state", "value", "is", "this", ".", "options", ".", "valueSeparator" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/js/fields/SelectTwiceField.js#L193-L199
train
3rd-Eden/licenses
index.js
parse
function parse(name, options, fn) { if ('function' === typeof options) { fn = options; options = null; } // // Fix circular require. // if (!Registry) Registry = require('npm-registry'); options = options || {}; options.githulk = options.githulk || null; options.order = options.order || ['re...
javascript
function parse(name, options, fn) { if ('function' === typeof options) { fn = options; options = null; } // // Fix circular require. // if (!Registry) Registry = require('npm-registry'); options = options || {}; options.githulk = options.githulk || null; options.order = options.order || ['re...
[ "function", "parse", "(", "name", ",", "options", ",", "fn", ")", "{", "if", "(", "'function'", "===", "typeof", "options", ")", "{", "fn", "=", "options", ";", "options", "=", "null", ";", "}", "//", "// Fix circular require.", "//", "if", "(", "!", ...
Start searching for license information for the given module name. Options: - githulk: A pre-configured githulk instance. - order: The order of resolving license information. - npmjs: A pre-configured npm-registry instance. - registry: A registry to use for the npmjs instance. @param {Mixed} name The module name or ...
[ "Start", "searching", "for", "license", "information", "for", "the", "given", "module", "name", "." ]
8f58b7700fd03de0e095cc408852fa12d1379c3f
https://github.com/3rd-Eden/licenses/blob/8f58b7700fd03de0e095cc408852fa12d1379c3f/index.js#L25-L93
train
3rd-Eden/licenses
index.js
fetch
function fetch(next) { if ('string' !== typeof name) return next(undefined, name); options.npmjs.packages.get(name, next); }
javascript
function fetch(next) { if ('string' !== typeof name) return next(undefined, name); options.npmjs.packages.get(name, next); }
[ "function", "fetch", "(", "next", ")", "{", "if", "(", "'string'", "!==", "typeof", "name", ")", "return", "next", "(", "undefined", ",", "name", ")", ";", "options", ".", "npmjs", ".", "packages", ".", "get", "(", "name", ",", "next", ")", ";", "}...
Make sure that we have the correct contents to start searching for license information.
[ "Make", "sure", "that", "we", "have", "the", "correct", "contents", "to", "start", "searching", "for", "license", "information", "." ]
8f58b7700fd03de0e095cc408852fa12d1379c3f
https://github.com/3rd-Eden/licenses/blob/8f58b7700fd03de0e095cc408852fa12d1379c3f/index.js#L52-L56
train
3rd-Eden/licenses
index.js
search
function search(data, next) { if (!options.order.length) return next(); if (Array.isArray(data)) data = data[0]; debug('searching for licensing information for %s', data.name); var parser, result, name; async.doWhilst(function does(next) { name = options.order.shift(); p...
javascript
function search(data, next) { if (!options.order.length) return next(); if (Array.isArray(data)) data = data[0]; debug('searching for licensing information for %s', data.name); var parser, result, name; async.doWhilst(function does(next) { name = options.order.shift(); p...
[ "function", "search", "(", "data", ",", "next", ")", "{", "if", "(", "!", "options", ".", "order", ".", "length", ")", "return", "next", "(", ")", ";", "if", "(", "Array", ".", "isArray", "(", "data", ")", ")", "data", "=", "data", "[", "0", "]...
Search for the correct way of parsing out the license information.
[ "Search", "for", "the", "correct", "way", "of", "parsing", "out", "the", "license", "information", "." ]
8f58b7700fd03de0e095cc408852fa12d1379c3f
https://github.com/3rd-Eden/licenses/blob/8f58b7700fd03de0e095cc408852fa12d1379c3f/index.js#L61-L91
train
neyric/webhookit
public/javascripts/yui/dom/dom.js
function() { var scrollHeight = (document[COMPAT_MODE] != CSS1_COMPAT || isSafari) ? document.body.scrollHeight : documentElement.scrollHeight, h = Math.max(scrollHeight, Y.Dom.getViewportHeight()); return h; }
javascript
function() { var scrollHeight = (document[COMPAT_MODE] != CSS1_COMPAT || isSafari) ? document.body.scrollHeight : documentElement.scrollHeight, h = Math.max(scrollHeight, Y.Dom.getViewportHeight()); return h; }
[ "function", "(", ")", "{", "var", "scrollHeight", "=", "(", "document", "[", "COMPAT_MODE", "]", "!=", "CSS1_COMPAT", "||", "isSafari", ")", "?", "document", ".", "body", ".", "scrollHeight", ":", "documentElement", ".", "scrollHeight", ",", "h", "=", "Mat...
Returns the height of the document. @method getDocumentHeight @return {Int} The height of the actual document (which includes the body and its margin).
[ "Returns", "the", "height", "of", "the", "document", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom.js#L900-L905
train
neyric/webhookit
public/javascripts/yui/dom/dom.js
function() { var scrollWidth = (document[COMPAT_MODE] != CSS1_COMPAT || isSafari) ? document.body.scrollWidth : documentElement.scrollWidth, w = Math.max(scrollWidth, Y.Dom.getViewportWidth()); return w; }
javascript
function() { var scrollWidth = (document[COMPAT_MODE] != CSS1_COMPAT || isSafari) ? document.body.scrollWidth : documentElement.scrollWidth, w = Math.max(scrollWidth, Y.Dom.getViewportWidth()); return w; }
[ "function", "(", ")", "{", "var", "scrollWidth", "=", "(", "document", "[", "COMPAT_MODE", "]", "!=", "CSS1_COMPAT", "||", "isSafari", ")", "?", "document", ".", "body", ".", "scrollWidth", ":", "documentElement", ".", "scrollWidth", ",", "w", "=", "Math",...
Returns the width of the document. @method getDocumentWidth @return {Int} The width of the actual document (which includes the body and its margin).
[ "Returns", "the", "width", "of", "the", "document", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom.js#L912-L916
train
neyric/webhookit
public/javascripts/yui/dom/dom.js
function() { var width = self.innerWidth, // Safari mode = document[COMPAT_MODE]; if (mode || isIE) { // IE, Gecko, Opera width = (mode == CSS1_COMPAT) ? documentElement.clientWidth : // Standards docum...
javascript
function() { var width = self.innerWidth, // Safari mode = document[COMPAT_MODE]; if (mode || isIE) { // IE, Gecko, Opera width = (mode == CSS1_COMPAT) ? documentElement.clientWidth : // Standards docum...
[ "function", "(", ")", "{", "var", "width", "=", "self", ".", "innerWidth", ",", "// Safari", "mode", "=", "document", "[", "COMPAT_MODE", "]", ";", "if", "(", "mode", "||", "isIE", ")", "{", "// IE, Gecko, Opera", "width", "=", "(", "mode", "==", "CSS1...
Returns the current width of the viewport. @method getViewportWidth @return {Int} The width of the viewable area of the page (excludes scrollbars).
[ "Returns", "the", "current", "width", "of", "the", "viewport", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom.js#L942-L952
train
neyric/webhookit
public/javascripts/yui/dom/dom.js
function(node, className) { node = Y.Dom.get(node); if (!node) { return null; } var method = function(el) { return Y.Dom.hasClass(el, className); }; return Y.Dom.getAncestorBy(node, method); }
javascript
function(node, className) { node = Y.Dom.get(node); if (!node) { return null; } var method = function(el) { return Y.Dom.hasClass(el, className); }; return Y.Dom.getAncestorBy(node, method); }
[ "function", "(", "node", ",", "className", ")", "{", "node", "=", "Y", ".", "Dom", ".", "get", "(", "node", ")", ";", "if", "(", "!", "node", ")", "{", "return", "null", ";", "}", "var", "method", "=", "function", "(", "el", ")", "{", "return",...
Returns the nearest ancestor with the given className. @method getAncestorByClassName @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point @param {String} className @return {Object} HTMLElement
[ "Returns", "the", "nearest", "ancestor", "with", "the", "given", "className", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom.js#L979-L986
train
neyric/webhookit
public/javascripts/yui/dom/dom.js
function(node, tagName) { node = Y.Dom.get(node); if (!node) { return null; } var method = function(el) { return el[TAG_NAME] && el[TAG_NAME].toUpperCase() == tagName.toUpperCase(); }; return Y.Dom.getAncestorBy(no...
javascript
function(node, tagName) { node = Y.Dom.get(node); if (!node) { return null; } var method = function(el) { return el[TAG_NAME] && el[TAG_NAME].toUpperCase() == tagName.toUpperCase(); }; return Y.Dom.getAncestorBy(no...
[ "function", "(", "node", ",", "tagName", ")", "{", "node", "=", "Y", ".", "Dom", ".", "get", "(", "node", ")", ";", "if", "(", "!", "node", ")", "{", "return", "null", ";", "}", "var", "method", "=", "function", "(", "el", ")", "{", "return", ...
Returns the nearest ancestor with the given tagName. @method getAncestorByTagName @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point @param {String} tagName @return {Object} HTMLElement
[ "Returns", "the", "nearest", "ancestor", "with", "the", "given", "tagName", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom.js#L995-L1005
train
neyric/webhookit
public/javascripts/yui/dom/dom.js
function(newNode, referenceNode) { newNode = Y.Dom.get(newNode); referenceNode = Y.Dom.get(referenceNode); if (!newNode || !referenceNode || !referenceNode[PARENT_NODE]) { return null; } return referenceNode[PARENT_NODE]....
javascript
function(newNode, referenceNode) { newNode = Y.Dom.get(newNode); referenceNode = Y.Dom.get(referenceNode); if (!newNode || !referenceNode || !referenceNode[PARENT_NODE]) { return null; } return referenceNode[PARENT_NODE]....
[ "function", "(", "newNode", ",", "referenceNode", ")", "{", "newNode", "=", "Y", ".", "Dom", ".", "get", "(", "newNode", ")", ";", "referenceNode", "=", "Y", ".", "Dom", ".", "get", "(", "referenceNode", ")", ";", "if", "(", "!", "newNode", "||", "...
Inserts the new node as the previous sibling of the reference node @method insertBefore @param {String | HTMLElement} newNode The node to be inserted @param {String | HTMLElement} referenceNode The node to insert the new node before @return {HTMLElement} The node that was inserted (or null if insert fails)
[ "Inserts", "the", "new", "node", "as", "the", "previous", "sibling", "of", "the", "reference", "node" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom.js#L1196-L1205
train
neyric/webhookit
public/javascripts/yui/stylesheet/stylesheet.js
function (sel) { var rule,css; if (lang.isString(sel)) { // IE's addRule doesn't support multiple comma delimited // selectors so rules are mapped internally by atomic selectors rule = cssRules[sel.split(/\s*,\s*/)[0]]; return rul...
javascript
function (sel) { var rule,css; if (lang.isString(sel)) { // IE's addRule doesn't support multiple comma delimited // selectors so rules are mapped internally by atomic selectors rule = cssRules[sel.split(/\s*,\s*/)[0]]; return rul...
[ "function", "(", "sel", ")", "{", "var", "rule", ",", "css", ";", "if", "(", "lang", ".", "isString", "(", "sel", ")", ")", "{", "// IE's addRule doesn't support multiple comma delimited", "// selectors so rules are mapped internally by atomic selectors", "rule", "=", ...
Get the current cssText for a rule or the entire sheet. If the selector param is supplied, only the cssText for that rule will be returned, if found. If the selector string targets multiple selectors separated by commas, the cssText of the first rule only will be returned. If no selector string, the stylesheet's ful...
[ "Get", "the", "current", "cssText", "for", "a", "rule", "or", "the", "entire", "sheet", ".", "If", "the", "selector", "param", "is", "supplied", "only", "the", "cssText", "for", "that", "rule", "will", "be", "returned", "if", "found", ".", "If", "the", ...
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/stylesheet/stylesheet.js#L406-L425
train