rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
_css(_logo, _getStyle()); | (function(jwplayer) { var _defaults = { prefix: "http://l.longtailvideo.com/html5/0/", file: "logo.png", link: "http://www.longtailvideo.com/players/jw-flv-player/", margin: 8, out: 0.5, over: 1, timeout: 3, hide: "true", //position: "bottom-left", width: 93, height: 30 }; _css = jwplayer.html5.utils.css; ... | |
position: "absolute" | position: "absolute", display: "none" | (function(jwplayer) { var _defaults = { prefix: "http://l.longtailvideo.com/html5/0/", file: "logo.png", link: "http://www.longtailvideo.com/players/jw-flv-player/", margin: 8, out: 0.5, over: 1, timeout: 3, hide: "true", //position: "bottom-left", width: 93, height: 30 }; _css = jwplayer.html5.utils.css; ... |
setTimeout(jwplayer.html5.utils.fadeTo(_logo, 0, 0.1, _logo.style.opacity), _settings.timeout * 1000); | jwplayer.html5.utils.fadeTo(_logo, 0, 0.1, parseFloat(_logo.style.opacity), _settings.timeout); | (function(jwplayer) { var _defaults = { prefix: "http://l.longtailvideo.com/html5/0/", file: "logo.png", link: "http://www.longtailvideo.com/players/jw-flv-player/", margin: 8, out: 0.5, over: 1, timeout: 3, hide: "true", //position: "bottom-left", width: 93, height: 30 }; _css = jwplayer.html5.utils.css; ... |
same( $(".ui-menu:visible").length, 1 ); | same( $(".ui-menu:visible").length, 0 ); | (function($) {module("autocomplete: events", { teardown: function() { $( ":ui-autocomplete" ).autocomplete( "destroy" ); }});var data = ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby", "python", "c", "scala", "groovy", "haskell", "perl"];test("all events", function() { expect(12); var ac = $("#autocom... |
module("autocomplete: options"); | module("autocomplete: options", { teardown: function() { $( ":ui-autocomplete" ).autocomplete( "destroy" ); } }); | (function($) {module("autocomplete: options");/* disabled until autocomplete actually has built-in support for caching // returns at most 4 itemsfunction source(request) { ok(true, "handling a request"); switch(request.term) { case "cha": return ["Common Pochard", "Common Chiffchaff", "Common Chaffinch", "Iberian Chif... |
test( "appendTo", function() { var ac = $( "#autocomplete" ).autocomplete(); same( ac.autocomplete( "widget" ).parent()[0], document.body, "defaults to body" ); ac.autocomplete( "destroy" ); ac.autocomplete({ appendTo: "#ac-wrap2" }); same( ac.autocomplete( "widget" ).parent()[0], $( "#ac-wrap2" )[0], "id" ); ac.autoc... | (function($) {module("autocomplete: options", { teardown: function() { $( ":ui-autocomplete" ).autocomplete( "destroy" ); }});/* disabled until autocomplete actually has built-in support for caching // returns at most 4 itemsfunction source(request) { ok(true, "handling a request"); switch(request.term) { case "cha": ... | |
same( beforeHtml, afterHtml ); | ok( beforeHtml == afterHtml ); | (function($) {module("autocomplete: methods");test("destroy", function() { var beforeHtml = $("#autocomplete").parent().html(); var afterHtml = $("#autocomplete").autocomplete().autocomplete("destroy").parent().html(); same( beforeHtml, afterHtml );})var data = ["c++", "java", "php", "coldfusion", "javascript", "asp", ... |
translated['fullscreen'] = translated['message']; delete translated['message']; | translated.fullscreen = translated.message; delete translated.message; } else if (type == jwplayer.api.events.JWPLAYER_PLAYLIST_ITEM) { if (translated.item && translated.index === undefined) { translated.index = translated.item; delete translated.item; } | (function(jwplayer) { var _players = []; jwplayer.constructor = function(container) { return jwplayer.api.selectPlayer(container); }; jwplayer.api = function() {}; jwplayer.api.events = { API_READY: 'jwplayerAPIReady', JWPLAYER_READY: 'jwplayerReady', JWPLAYER_FULLSCREEN: 'jwplayerFullscreen', JWPLAYER_RESIZE: 'j... |
getPlaylist: function() { return this.callInternal('jwGetPlaylist'); }, | getPlaylist: function() { var playlist = this.callInternal('jwGetPlaylist'); for (var i=0; i<playlist.length; i++) { if (playlist[i].index === undefined) { playlist[i].index = i; } } return playlist; }, | (function(jwplayer) { var _players = []; jwplayer.constructor = function(container) { return jwplayer.api.selectPlayer(container); }; jwplayer.api = function() {}; jwplayer.api.events = { API_READY: 'jwplayerAPIReady', JWPLAYER_READY: 'jwplayerReady', JWPLAYER_FULLSCREEN: 'jwplayerFullscreen', JWPLAYER_RESIZE: 'j... |
if (item == undefined) item = 0; | if (item == undefined) item = this.getCurrentItem(); | (function(jwplayer) { var _players = []; jwplayer.constructor = function(container) { return jwplayer.api.selectPlayer(container); }; jwplayer.api = function() {}; jwplayer.api.events = { API_READY: 'jwplayerAPIReady', JWPLAYER_READY: 'jwplayerReady', JWPLAYER_FULLSCREEN: 'jwplayerFullscreen', JWPLAYER_RESIZE: 'j... |
this.queueNow(request); | this.enqueue(request); | _Lang.hitch(this, function() { this.clearDelayTimeout(); this.queueNow(request); }), request._delay); |
var basepath = document.location.href.substring(protocol.length, (path.indexOf("/") === 0) ? document.location.href.indexOf('/') : document.location.href.lastIndexOf('/')); | var basepath = document.location.href.substring(protocol.length, (path.indexOf("/") === 0) ? document.location.href.indexOf('/', protocol.length) : document.location.href.lastIndexOf('/')); | (function($) { /** Constructor **/ $.fn.jwplayerUtils = function() { return this.each(function() { }); }; //http://old.nabble.com/jQuery-may-add-$.browser.isiPhone-td11163329s27240.html $.fn.jwplayerUtils.isiPhone = function() { var agent = navigator.userAgent.toLowerCase(); return (agent.match(/iPhone/i) || agent... |
(function(a){a.html5=function(b){var c=b;this.setup=function(d){a.utils.extend(this,new a.html5.api(c,d));return this};return this};a.html5.version="5.3"})(jwplayer);(function(b){b.html5.utils=function(){};b.html5.utils.extension=function(d){return d.substr(d.lastIndexOf(".")+1,d.length).toLowerCase()};b.html5.utils.ge... | (function(a){a.html5=function(b){var c=b;this.setup=function(d){a.utils.extend(this,new a.html5.api(c,d));return this};return this};a.html5.version="5.3"})(jwplayer);(function(b){b.html5.utils=function(){};b.html5.utils.extension=function(d){return d.substr(d.lastIndexOf(".")+1,d.length).toLowerCase()};b.html5.utils.ge... | (function(a){a.html5=function(b){var c=b;this.setup=function(d){a.utils.extend(this,new a.html5.api(c,d));return this};return this};a.html5.version="5.3"})(jwplayer);(function(b){b.html5.utils=function(){};b.html5.utils.extension=function(d){return d.substr(d.lastIndexOf(".")+1,d.length).toLowerCase()};b.html5.utils.ge... |
width: (width - 10) | width: (width - 10), top: ((_height - _display.display_text.getBoundingClientRect().height) / 2) | (function(jwplayer) { _css = jwplayer.html5.utils.css; _hide = function(element) { _css(element, { display: "none" }); }; _show = function(element) { _css(element, { display: "block" }); }; jwplayer.html5.display = function(api, config) { var _api = api; var _display = {}; var _width; var _height; var _... |
function _errorHandler(evt){ | function _errorHandler(evt) { _error = true; | (function(jwplayer) { _css = jwplayer.html5.utils.css; _hide = function(element) { _css(element, { display: "none" }); }; _show = function(element) { _css(element, { display: "block" }); }; jwplayer.html5.display = function(api, config) { var _api = api; var _display = {}; var _width; var _height; var _... |
_hide(_display.display_text); | if (typeof evt.newstate != "undefined" && _error) { _error = false; _hide(_display.display_text); } | (function(jwplayer) { _css = jwplayer.html5.utils.css; _hide = function(element) { _css(element, { display: "none" }); }; _show = function(element) { _css(element, { display: "block" }); }; jwplayer.html5.display = function(api, config) { var _api = api; var _display = {}; var _width; var _height; var _... |
_show(_display.display_iconBackground); | (function(jwplayer) { _css = jwplayer.html5.utils.css; _hide = function(element) { _css(element, { display: "none" }); }; _show = function(element) { _css(element, { display: "block" }); }; jwplayer.html5.display = function(api, config) { var _api = api; var _display = {}; var _width; var _height; var _... | |
if ( content && content.length ) { | if ( !this.options.disabled && content && content.length ) { | (function( $, undefined ) {$.widget( "ui.autocomplete", { options: { appendTo: "body", delay: 300, minLength: 1, position: { my: "left top", at: "left bottom", collision: "none" }, source: null }, _create: function() { var self = this, doc = this.element[ 0 ].ownerDocument, suppressKeyPress; this.elem... |
if ( $("#slideshow-link").html() == "Pause" ) { $("#slideshow-link").html("Play"); | if ( $("#slideshow-link").attr("slideshowStatus") == "Pause" ) { $("#slideshow-link").attr("slideshowStatus", "Play"); $("#slideshow-link").html($("#playHtml").html()); | $(document).ready(function() { var $_GET = {}; document.location.search.replace(/\??(?:([^=]+)=([^&]*)&?)/g, function () { function decode(s) { return decodeURIComponent(s).replace(/\+/g, " "); } $_GET[decode(arguments[1])] = decode(arguments[2]); }); var $photoDetailDialog = $("#photo-detail").dia... |
$("#slideshow-link").html("Pause"); | $("#slideshow-link").attr("slideshowStatus", "Pause"); $("#slideshow-link").html($("#pauseHtml").html()); | $(document).ready(function() { var $_GET = {}; document.location.search.replace(/\??(?:([^=]+)=([^&]*)&?)/g, function () { function decode(s) { return decodeURIComponent(s).replace(/\+/g, " "); } $_GET[decode(arguments[1])] = decode(arguments[2]); }); var $photoDetailDialog = $("#photo-detail").dia... |
$("#slideshow-link").html("Pause"); | $("#slideshow-link").html($("#pauseHtml").html()); | $(document).ready(function() { var $_GET = {}; document.location.search.replace(/\??(?:([^=]+)=([^&]*)&?)/g, function () { function decode(s) { return decodeURIComponent(s).replace(/\+/g, " "); } $_GET[decode(arguments[1])] = decode(arguments[2]); }); var $photoDetailDialog = $("#photo-detail").dia... |
console.log("move, first or last") | (function( $ ) {$.widget( "ui.autocomplete", { options: { minLength: 1, delay: 300 }, _create: function() { var self = this; this.element .attr( "autocomplete", "off" ) // TODO verify these actually work as intended .attr({ role: "textbox", "aria-autocomplete": "list", "aria-haspopup": "true" }) ... | |
var source = _container.ownerDocument.createElement("source"); source.src = jwplayer.html5.utils.getAbsolutePath(sourceModel.file); | var sourceType; | (function(jwplayer) { var _states = { "ended": jwplayer.api.events.state.IDLE, "playing": jwplayer.api.events.state.PLAYING, "pause": jwplayer.api.events.state.PAUSED, "buffering": jwplayer.api.events.state.BUFFERING }; var _css = jwplayer.html5.utils.css; jwplayer.html5.mediavideo = function(model, container) { ... |
source.type = jwplayer.html5.extensionmap[extension]; | sourceType = jwplayer.html5.extensionmap[extension]; | (function(jwplayer) { var _states = { "ended": jwplayer.api.events.state.IDLE, "playing": jwplayer.api.events.state.PLAYING, "pause": jwplayer.api.events.state.PAUSED, "buffering": jwplayer.api.events.state.BUFFERING }; var _css = jwplayer.html5.utils.css; jwplayer.html5.mediavideo = function(model, container) { ... |
source.type = 'video/' + extension + ';'; | sourceType = 'video/' + extension + ';'; | (function(jwplayer) { var _states = { "ended": jwplayer.api.events.state.IDLE, "playing": jwplayer.api.events.state.PLAYING, "pause": jwplayer.api.events.state.PAUSED, "buffering": jwplayer.api.events.state.BUFFERING }; var _css = jwplayer.html5.utils.css; jwplayer.html5.mediavideo = function(model, container) { ... |
source.type = sourceModel.type; } | sourceType = sourceModel.type; } if (vid.canPlayType(sourceType) === ""){ continue; } var source = _container.ownerDocument.createElement("source"); source.src = jwplayer.html5.utils.getAbsolutePath(sourceModel.file); source.type = sourceType; | (function(jwplayer) { var _states = { "ended": jwplayer.api.events.state.IDLE, "playing": jwplayer.api.events.state.PLAYING, "pause": jwplayer.api.events.state.PAUSED, "buffering": jwplayer.api.events.state.BUFFERING }; var _css = jwplayer.html5.utils.css; jwplayer.html5.mediavideo = function(model, container) { ... |
jwplayer=function(a){return jwplayer.constructor(a)};jwplayer.constructor=function(a){};$jw=jwplayer;jwplayer.utils=function(){};jwplayer.utils.typeOf=function(b){var a=typeof b;if(a==="object"){if(b){if(b instanceof Array){a="array"}}else{a="null"}}return a};jwplayer.utils.extend=function(){var a=jwplayer.utils.extend... | jwplayer=function(a){return jwplayer.constructor(a)};jwplayer.constructor=function(a){};$jw=jwplayer;jwplayer.utils=function(){};jwplayer.utils.typeOf=function(b){var a=typeof b;if(a==="object"){if(b){if(b instanceof Array){a="array"}}else{a="null"}}return a};jwplayer.utils.extend=function(){var a=jwplayer.utils.extend... | jwplayer=function(a){return jwplayer.constructor(a)};jwplayer.constructor=function(a){};$jw=jwplayer;jwplayer.utils=function(){};jwplayer.utils.typeOf=function(b){var a=typeof b;if(a==="object"){if(b){if(b instanceof Array){a="array"}}else{a="null"}}return a};jwplayer.utils.extend=function(){var a=jwplayer.utils.extend... |
: 'a' == nodeName || 'area' == nodeName | : 'a' == nodeName | (function( $, undefined ) {// prevent duplicate loading// this is only a problem because we proxy existing functions// and we don't want to double proxy them$.ui = $.ui || {};if ($.ui.version) { return;}//Helper functions and ui object$.extend($.ui, { version: "@VERSION", // $.ui.plugin is deprecated. Use the proxy pa... |
&& !$(element).parents().andSelf().filter(function() { return $.curCSS( this, "visibility" ) === "hidden" || $.expr.filters.hidden( this ); }).length; | && visible( element ); | (function( $, undefined ) {// prevent duplicate loading// this is only a problem because we proxy existing functions// and we don't want to double proxy them$.ui = $.ui || {};if ($.ui.version) { return;}//Helper functions and ui object$.extend($.ui, { version: "@VERSION", // $.ui.plugin is deprecated. Use the proxy pa... |
APE.namespace("APE.dom");(function(){var D=document.documentElement,B="getNamedItem" in D.attributes,K="nodeType",L="compareDocumentPosition",I="parentNode",F=/^H/.test(D.tagName)?"toUpperCase":"toLowerCase";APE.dom.mixin({contains:H(),findAncestorWithAttribute:A,findAncestorWithTagName:J,findNextSiblingElement:C,findP... | APE.namespace("APE.dom").mixin(function(){var D=document.documentElement,B="getNamedItem" in D.attributes,K="parentNode",H=/^H/.test(D.tagName)?"toUpperCase":"toLowerCase";D=null;return{contains:E,isOrContains:J,findAncestorWithAttribute:A,findAncestorWithTagName:L,findNextSiblingElement:C,findPreviousSiblingElement:G,... | APE.namespace("APE.dom");(function(){var D=document.documentElement,B="getNamedItem" in D.attributes,K="nodeType",L="compareDocumentPosition",I="parentNode",F=/^H/.test(D.tagName)?"toUpperCase":"toLowerCase";APE.dom.mixin({contains:H(),findAncestorWithAttribute:A,findAncestorWithTagName:J,findNextSiblingElement:C,findP... |
APE.namespace("APE.ajax");(function(){APE.ajax.AsyncRequest=APE.createFactory(K,G);function K(N,L){this.id=N;this.httpMethod=L.method&&L.method.toLowerCase()||"get";this.uri=L.action;if(!this.uri){throw URIError("formConfig.action = undefined")}this.enctype=L.enctype;if(!this.enctype&&this.httpMethod=="post"){this.enct... | APE.namespace("APE.ajax");(function(){APE.ajax.AsyncRequest=APE.createFactory(N,I);function N(Q,O){this.id=Q;this.httpMethod=O.method&&O.method.toLowerCase()||"get";this.uri=O.action;if(!this.uri){throw URIError("formConfig.action = undefined")}this.enctype=O.enctype;if(!this.enctype&&this.httpMethod=="post"){this.enct... | APE.namespace("APE.ajax");(function(){APE.ajax.AsyncRequest=APE.createFactory(K,G);function K(N,L){this.id=N;this.httpMethod=L.method&&L.method.toLowerCase()||"get";this.uri=L.action;if(!this.uri){throw URIError("formConfig.action = undefined")}this.enctype=L.enctype;if(!this.enctype&&this.httpMethod=="post"){this.enct... |
var ac = $('#list1').accordion({ active: "a:last" }); | var ac = $('#list1').accordion({ active: "h3:last" }); | (function($) {module("accordion: methods");test("init", function() { $("<div></div>").appendTo('body').accordion().remove(); ok(true, '.accordion() called on element'); $([]).accordion().remove(); ok(true, '.accordion() called on empty collection'); $('<div></div>').accordion().remove(); ok(true, '.accordion() called o... |
var ac = $('#list1').accordion({ active: $("#list1 a:last") }); | var ac = $('#list1').accordion({ active: $("#list1 h3:last") }); | (function($) {module("accordion: methods");test("init", function() { $("<div></div>").appendTo('body').accordion().remove(); ok(true, '.accordion() called on element'); $([]).accordion().remove(); ok(true, '.accordion() called on empty collection'); $('<div></div>').accordion().remove(); ok(true, '.accordion() called o... |
ac.accordion("activate", $("#list1 a:first")); | ac.accordion("activate", $("#list1 h3:first")); | (function($) {module("accordion: methods");test("init", function() { $("<div></div>").appendTo('body').accordion().remove(); ok(true, '.accordion() called on element'); $([]).accordion().remove(); ok(true, '.accordion() called on empty collection'); $('<div></div>').accordion().remove(); ok(true, '.accordion() called o... |
ac.accordion("activate", $("#list1 a")[1]); | ac.accordion("activate", $("#list1 h3")[1]); | (function($) {module("accordion: methods");test("init", function() { $("<div></div>").appendTo('body').accordion().remove(); ok(true, '.accordion() called on element'); $([]).accordion().remove(); ok(true, '.accordion() called on empty collection'); $('<div></div>').accordion().remove(); ok(true, '.accordion() called o... |
this.buttons = this.element.find( ":button, :submit, :reset, :checkbox, :radio, a, :data(button)" ) | this.buttons = this.element.find( this.options.items ) | (function( $, undefined ) {var lastActive, baseClasses = "ui-button ui-widget ui-state-default ui-corner-all", stateClasses = "ui-state-hover ui-state-active ", typeClasses = "ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only", fo... |
.filter( ":visible" ) .filter( ":first" ) .addClass( "ui-corner-left" ) .end() .filter( ":last" ) .addClass( "ui-corner-right" ) .end() | .filter( ":first" ) .addClass( "ui-corner-left" ) .end() .filter( ":last" ) .addClass( "ui-corner-right" ) | (function( $, undefined ) {var lastActive, baseClasses = "ui-button ui-widget ui-state-default ui-corner-all", stateClasses = "ui-state-hover ui-state-active ", typeClasses = "ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only", fo... |
.button( "destroy" ) | .button( "destroy" ); | (function( $ ) {var lastActive, baseClasses = "ui-button ui-widget ui-state-default ui-corner-all", otherClasses = "ui-state-hover ui-state-active " + "ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon ui-button-text-only", formResetHandler = function( event ) { $( ":ui-button", event.... |
players: [{type:"flash", src:"player.swf"}], | players: [{type:"flash", src:"player.swf"},{type:'html5'}], | (function(jwplayer) { jwplayer.embed = function() { }; jwplayer.embed.Embedder = function(playerApi) { this.constructor(playerApi); }; jwplayer.embed.defaults = { width : 400, height : 300, players: [{type:"flash", src:"player.swf"}], components: { controlbar: { position: "over" } } }; jwplayer.embed.Embe... |
;function EventPublisher(src,type){this.src=src;this._callStack=[];this.type=type}APE.EventPublisher=APE.createMixin(EventPublisher,{addCallback:add,removeCallback:remove,get:get,add:add,remove:remove,fire:fire,cleanUp:cleanUp,prototype:{addCallback:function(fp,thisArg){this._callStack.push([fp,thisArg||this.src]);retu... | ;function EventPublisher(src,type){this.src=src;this._callStack=[];this.type=type}APE.EventPublisher=APE.createMixin(EventPublisher,{addCallback:add,removeCallback:remove,get:get,add:add,remove:remove,fire:fire,cleanUp:cleanUp,prototype:{addCallback:function(fp,thisArg){this._callStack.push([fp,thisArg||this.src]);retu... | (function(){var APE=self.APE,Registry={},isMaybeLeak/*@cc_on=(@_jscript_version<5.7)@*/;function EventPublisher(src,type){this.src=src;this._callStack=[];this.type=type}APE.EventPublisher=APE.createMixin(EventPublisher,{addCallback:add,removeCallback:remove,get:get,add:add,remove:remove,fire:fire,cleanUp:cleanUp,protot... |
options.toShow.animate({height: "show"}, options); | options.toShow.animate({height: "show", paddingTop: "show", paddingBottom: "show"}, options); | (function( $, undefined ) {$.widget("ui.accordion", { options: { active: 0, animated: 'slide', autoHeight: true, clearStyle: false, collapsible: false, event: "click", fillSpace: false, header: "> li > :first-child,> :not(li):even", icons: { header: "ui-icon-triangle-1-e", headerSelected: "ui-icon-triangle... |
options.toHide.animate({height: "hide"}, options); | options.toHide.animate({height: "hide", paddingTop: "hide", paddingBottom: "hide"}, options); | (function( $, undefined ) {$.widget("ui.accordion", { options: { active: 0, animated: 'slide', autoHeight: true, clearStyle: false, collapsible: false, event: "click", fillSpace: false, header: "> li > :first-child,> :not(li):even", icons: { header: "ui-icon-triangle-1-e", headerSelected: "ui-icon-triangle... |
width: width | width: (width - 10) | (function(jwplayer) { _css = jwplayer.html5.utils.css; _hide = function(element) { _css(element, { display: "none" }); }; _show = function(element) { _css(element, { display: "block" }); }; jwplayer.html5.display = function(api, config) { var _api = api; var _display = {}; var _width; var _height; var _... |
mediaBrowser.getContentArea().load(Drupal.settings.basePath + 'admin/content/media/add/files?destination=' + window.location.href +' form'); | mediaBrowser.getContentArea().load(Drupal.settings.basePath + 'media/add/upload?destination=' + window.location.href +' form#media-add-upload'); | (function ($) { namespace('Drupal.media.browser.plugin'); Drupal.media.browser.plugin.upload = function(mediaBrowser, options) { return { /* Abstract */ init: function() { tabset = mediaBrowser.getTabset(); tabset.tabs('add', '#upload', 'Upload'); mediaBrowser.listen('tabs.tabSelec... |
expect(6); | expect(9); | (function () { var saveAction = function () { fluid.log("save me"); }; var afterSuccessSave = function () { fluid.log("success save"); }; var onError = function () { fluid.log("error"); }; var baseTestOpts = { action: saveAction, actionSuccessEvents: a... |
jqUnit.assertTrue("Default button style should be added to cancel", jQuery(".csc-confirmationDialogButton-cancel").hasClass("cs-confirmationDialogButton-cancel")); jqUnit.assertTrue("Default button style should be added to proceed", jQuery(".csc-confirmationDialogButton-proceed").hasClass("cs-confirmationDialogButton-p... | (function () { var saveAction = function () { fluid.log("save me"); }; var afterSuccessSave = function () { fluid.log("success save"); }; var onError = function () { fluid.log("error"); }; var baseTestOpts = { action: saveAction, actionSuccessEvents: a... | |
sizes.push($(this).outerHeight()); | sizes.push($(this).height()); | (function($) {module("accordion: options");test("{ active: first child }, default", function() { var ac = $("#list1").accordion(); equals( ac.accordion('option', 'active'), 0); state(ac, 1, 0, 0)});test("{ active: Selector }", function() { var ac = $("#list1").accordion({ active: "a:last" }); state(ac, 0, 0, 1); ac.ac... |
ok( sizes[0] >= 70 && sizes[0] <= 90 ); ok( sizes[1] >= 98 && sizes[1] <= 126 ); ok( sizes[2] >= 54 && sizes[2] <= 54 ); | ok( sizes[0] >= 70 && sizes[0] <= 90, "was " + sizes[0] ); ok( sizes[1] >= 98 && sizes[1] <= 126, "was " + sizes[1] ); ok( sizes[2] >= 54 && sizes[2] <= 54, "was " + sizes[2] ); | (function($) {module("accordion: options");test("{ active: first child }, default", function() { var ac = $("#list1").accordion(); equals( ac.accordion('option', 'active'), 0); state(ac, 1, 0, 0)});test("{ active: Selector }", function() { var ac = $("#list1").accordion({ active: "a:last" }); state(ac, 0, 0, 1); ac.ac... |
APE.namespace("APE.drag");(function(){var M=self.APE,P=M.dom,D=P.getStyle,O=M.drag,T=P.Event,R=1000,S={},B,C=Function.prototype,K=self.parseInt,N,H="function",G=M.createFactory(A,F),E=M.createFactory(I,Q);O.Draggable=G;O.DropTarget=E;G.instanceDestructor=L;function A(Z,U){var X=document,V=X.getElementById(Z),Y,W;this.i... | APE.namespace("APE.drag");(function(){var M=self.APE,P=M.dom,D=P.getStyle,O=M.drag,T=P.Event,R=1000,S={},B,C=Function.prototype,K=self.parseInt,N,H="function",G=M.createFactory(A,F),E=M.createFactory(I,Q);O.Draggable=G;O.DropTarget=E;G.instanceDestructor=L;function A(Z,U){var X=document,V=X.getElementById(Z),Y,W;this.i... | APE.namespace("APE.drag");(function(){var M=self.APE,P=M.dom,D=P.getStyle,O=M.drag,T=P.Event,R=1000,S={},B,C=Function.prototype,K=self.parseInt,N,H="function",G=M.createFactory(A,F),E=M.createFactory(I,Q);O.Draggable=G;O.DropTarget=E;G.instanceDestructor=L;function A(Z,U){var X=document,V=X.getElementById(Z),Y,W;this.i... |
jwplayer=function(a){return jwplayer.constructor(a)};jwplayer.constructor=function(a){};$jw=jwplayer;jwplayer.utils=function(){};jwplayer.utils.typeOf=function(b){var a=typeof b;if(a==="object"){if(b){if(b instanceof Array){a="array"}}else{a="null"}}return a};jwplayer.utils.extend=function(){var a=jwplayer.utils.extend... | jwplayer=function(a){return jwplayer.constructor(a)};jwplayer.constructor=function(a){};$jw=jwplayer;jwplayer.utils=function(){};jwplayer.utils.typeOf=function(b){var a=typeof b;if(a==="object"){if(b){if(b instanceof Array){a="array"}}else{a="null"}}return a};jwplayer.utils.extend=function(){var a=jwplayer.utils.extend... | jwplayer=function(a){return jwplayer.constructor(a)};jwplayer.constructor=function(a){};$jw=jwplayer;jwplayer.utils=function(){};jwplayer.utils.typeOf=function(b){var a=typeof b;if(a==="object"){if(b){if(b instanceof Array){a="array"}}else{a="null"}}return a};jwplayer.utils.extend=function(){var a=jwplayer.utils.extend... |
$('#edit-options').hide(); | Drupal.behaviors.mediaAdmin.showOrHideEditOptions(); | (function ($) {/** * Functionality for the thumbnail display */Drupal.behaviors.mediaAdmin = { attach: function (context) { // Configure the "Add file" link to fire the media browser popup. $('ul.action-links li', context).remove(); var $launcherLink = $('<a class="media-launcher" href="#"></a>').html('Add fi... |
player.model.domelement.jwplayerCSS({ | player.model.domelement.css({ | (function($) { var styleString = "left:0px;top:0px;position:absolute;z-index:0;"; var embedString = "<embed %elementvars% src='%flashplayer%' allowfullscreen='true' allowscriptaccess='always' flashvars='%flashvars%' %style% />"; var objectString = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' %elementva... |
'left': 0, | (function($) { var styleString = "left:0px;top:0px;position:absolute;z-index:0;"; var embedString = "<embed %elementvars% src='%flashplayer%' allowfullscreen='true' allowscriptaccess='always' flashvars='%flashvars%' %style% />"; var objectString = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' %elementva... | |
'z-index': 0 }); player.model.domelement.before("<a href='" + $.fn.jwplayerUtils.getAbsolutePath(player.model.sources[player.model.source].file) + "'><img src='http: player.model.domelement.prev("a").jwplayerCSS({ 'display': 'block', 'background': '#ffffff url(' + $.fn.jwplayerUtils.getAbsolutePath(player.model.config.... | 'z-index': 0, margin: 'auto' | (function($) { var styleString = "left:0px;top:0px;position:absolute;z-index:0;"; var embedString = "<embed %elementvars% src='%flashplayer%' allowfullscreen='true' allowscriptaccess='always' flashvars='%flashvars%' %style% />"; var objectString = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' %elementva... |
function imageHandler(obj, player) { switch (obj.newstate) { case $.fn.jwplayer.states.IDLE: player.model.domelement.css("z-index", "0"); player.model.domelement.prev("a").css("z-index", "50"); break; case $.fn.jwplayer.states.PLAYING: player.model.domelement.prev("a").css("z-index", "0"); player.model.domelement.css("... | (function($) { var styleString = "left:0px;top:0px;position:absolute;z-index:0;"; var embedString = "<embed %elementvars% src='%flashplayer%' allowfullscreen='true' allowscriptaccess='always' flashvars='%flashvars%' %style% />"; var objectString = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' %elementva... | |
ul.width( Math.max( menuWidth, textWidth ) - ( parseFloat( ul.css("paddingLeft") ) || 0 ) - ( parseFloat( ul.css("paddingRight") ) || 0 ) - ( parseFloat( ul.css("borderLeftWidth") ) || 0 ) - ( parseFloat( ul.css("borderRightWidth") ) || 0 ) ); }, | ul.outerWidth( Math.max( menuWidth, textWidth ) ); }, | (function( $, undefined ) {$.widget( "ui.autocomplete", { options: { appendTo: "body", delay: 300, minLength: 1, position: { my: "left top", at: "left bottom", collision: "none" }, source: null }, _create: function() { var self = this, doc = this.element[ 0 ].ownerDocument; this.element .addClass( "ui... |
if (bools.indexOf(value.toLowerCase().replace(" ", "")) >= 0) { | if (bools.toString().indexOf(value.toLowerCase().replace(" ", "")) >= 0) { | (function(jwplayer) { var _colorPattern = new RegExp(/^(#|0x)[0-9a-fA-F]{3,6}/); jwplayer.utils.typechecker = function(value, type) { type = type === null ? _guessType(value) : type; return _typeData(value, type); }; function _guessType(value) { var bools = ["true", "false", "t", "f"]; if (bools.indexOf(value.toL... |
this.tooltip.position($.extend(this.options.position, { | this.tooltip.css({ top: 0, left: 0 }).position($.extend(this.options.position, { | (function($) {var increments = 0;$.widget("ui.tooltip", { options: { tooltipClass: "ui-widget-content", content: function() { return $(this).attr("title"); }, position: { my: "left center", at: "right center", offset: "15 0" } }, _init: function() { var self = this; this.tooltip = $("<div></div>") .att... |
$.fn.jwplayerCSS = function(options) { return this.each(function() { var defaults = { 'margin':'0', 'padding':'0', 'background': 'none', 'border': 'none', 'bottom': 'auto', 'clear': 'none', 'cursor': 'default', 'float': 'none', 'font-family': '"Arial", "Helvetica", sans-serif', 'font-size': 'medium', 'font-style': 'nor... | (function($) { /** Constructor **/ $.fn.jwplayerUtils = function() { return this.each(function() { }); }; /** Check if this client supports Flash player 9.0.115+ (FLV/H264). **/ $.fn.jwplayerUtils.supportsFlash = function() { var version = '0,0,0,0'; try { try { var axo = new ActiveXObject('ShockwaveFlash.Sho... | |
_api.jwGetStretching = _statevarFactory('stretching'); | (function(jwplayer) { jwplayer.html5.api = function(container, options) { var _api = {}; if (!jwplayer.utils.browserSupportsConfig()) { return _api; } var _container = document.createElement('div'); container.parentNode.replaceChild(_container, container); _container.id = container.id; _api.version = jwp... | |
self.previous = self.element.val(); | (function( $ ) {$.widget( "ui.autocomplete", { options: { minLength: 1, delay: 300 }, _create: function() { var self = this, doc = this.element[ 0 ].ownerDocument; this.element .addClass( "ui-autocomplete-input" ) .attr( "autocomplete", "off" ) // TODO verify these actually work as intended .attr({ rol... | |
} | self.previous = previous; } self.selectedItem = item; | (function( $ ) {$.widget( "ui.autocomplete", { options: { minLength: 1, delay: 300 }, _create: function() { var self = this, doc = this.element[ 0 ].ownerDocument; this.element .addClass( "ui-autocomplete-input" ) .attr( "autocomplete", "off" ) // TODO verify these actually work as intended .attr({ rol... |
this._trigger( "change", event ); | this._trigger( "change", event, { item: this.selectedItem } ); | (function( $ ) {$.widget( "ui.autocomplete", { options: { minLength: 1, delay: 300 }, _create: function() { var self = this, doc = this.element[ 0 ].ownerDocument; this.element .addClass( "ui-autocomplete-input" ) .attr( "autocomplete", "off" ) // TODO verify these actually work as intended .attr({ rol... |
module("autocomplete: core"); | module("autocomplete: core", { teardown: function() { $( ":ui-autocomplete" ).autocomplete( "destroy" ); } }); | (function($) {module("autocomplete: core");test("close-on-blur is properly delayed", function() { var ac = $("#autocomplete").autocomplete({ source: ["java", "javascript"] }).val("ja").autocomplete("search"); same( $(".ui-menu:visible").length, 1 ); ac.blur(); same( $(".ui-menu:visible").length, 1 ); stop(); setTimeou... |
self.element.val( self.term ); | if ( self.menu.element.is(":visible") ) { self.element.val( self.term ); } | (function( $ ) {$.widget( "ui.autocomplete", { options: { minLength: 1, delay: 300 }, _create: function() { var self = this, doc = this.element[ 0 ].ownerDocument; this.element .addClass( "ui-autocomplete-input" ) .attr( "autocomplete", "off" ) // TODO verify these actually work as intended .attr({ rol... |
$('<div></div>').accordion().accordion("foo").remove(); ok(true, 'arbitrary method called after init'); | (function($) {module("accordion: methods");test("init", function() { $("<div></div>").appendTo('body').accordion().remove(); ok(true, '.accordion() called on element'); $([]).accordion().remove(); ok(true, '.accordion() called on empty collection'); $('<div></div>').accordion().remove(); ok(true, '.accordion() called o... | |
jqUnit.notVisible("Reset confirmation should not be visible", login.options.selectors.passwordReset); | loginTest.test("Basic login form visibility, actions", function () { var login = cspace.login(".login-container", {baseUrl: "http://foo.com/bar"}); jqUnit.isVisible("Basic login should be visible", login.options.selectors.signIn); jqUnit.notVisible("Email entry should not be visible", login.opt... | |
_bufferTimes = []; _addBufferEvent(); _setState(jwplayer.api.events.state.BUFFERING); setTimeout(function() { _positionHandler(); }, 25); | if (_model.config.chromeless) { _bufferTimes = []; _addBufferEvent(); _setState(jwplayer.api.events.state.BUFFERING); setTimeout(function() { _positionHandler(); }, 25); } | (function(jwplayer) { var _states = { "ended": jwplayer.api.events.state.IDLE, "playing": jwplayer.api.events.state.PLAYING, "pause": jwplayer.api.events.state.PAUSED, "buffering": jwplayer.api.events.state.BUFFERING }; var _css = jwplayer.html5.utils.css; jwplayer.html5.mediavideo = function(model, container) { ... |
config.depOpts.role.options.roleListEditor = { | config.depOpts.role.options.roleListEditor.options.baseUrl = "data/"; config.depOpts.role.options.roleListEditor.options.dataContext = { | (function ($) { fluid.log("roleSetup.js loaded"); cspace.roleSetup = function (options) { options = options || {}; options.fetchConfigCallback = options.fetchConfigCallback || function (config) { if (cspace.util.useLocalData()) { config.depOpts.role.... |
dataContext: { options: { baseUrl: "data/", fileExtension: ".json" } } | fileExtension: ".json" | (function ($) { fluid.log("roleSetup.js loaded"); cspace.roleSetup = function (options) { options = options || {}; options.fetchConfigCallback = options.fetchConfigCallback || function (config) { if (cspace.util.useLocalData()) { config.depOpts.role.... |
delete request._delay; | _Lang.hitch(this, function() { this.clearDelayTimeout(); this.enqueue(request); }), request._delay); | |
break; | (function($) { /** Map with all players on the page. **/ var players = {}; /** Hooking the controlbar up to jQuery. **/ $.fn.jwplayer = function(options) { return this.each(function() { $.fn.jwplayerUtils.log("Starting setup", this); return setupJWPlayer($(this), 0, options); }); }; function setupJWPlayer(playe... | |
this.simulateEvent(target, "click", coord); | ;(function($) {$.fn.extend({ simulate: function(type, options) { return this.each(function() { var opt = $.extend({}, $.simulate.defaults, options || {}); new $.simulate(this, type, opt); }); }});$.simulate = function(el, type, options) { this.target = el; this.options = options; if (/^drag$/.test(type)) { this[... | |
for (var i = 0; i < data.length; i++) { for (var j = 0; j < recordTypeList.length; j++) { if (data[i].recordtype === recordTypeList[j]) { relationList.push(data[i]); | if (data) { for (var i = 0; i < data.length; i++) { for (var j = 0; j < recordTypeList.length; j++) { if (data[i].recordtype === recordTypeList[j]) { relationList.push(data[i]); } | (function ($) { var setupTestDataContext = function (csid, recordType) { return { type: "cspace.dataContext", options: { urlFactory: { type: "cspace.dataContext.testUrlFactory", options: { resourceMapper: { ... |
if (data) { | (function ($) { var setupTestDataContext = function (csid, recordType) { return { type: "cspace.dataContext", options: { urlFactory: { type: "cspace.dataContext.testUrlFactory", options: { resourceMapper: { ... | |
orOpts.data = buildRelationsList(data, ["objects"]); } | orOpts.data = buildRelationsList(data, ["objects"]); | (function ($) { var setupTestDataContext = function (csid, recordType) { return { type: "cspace.dataContext", options: { urlFactory: { type: "cspace.dataContext.testUrlFactory", options: { resourceMapper: { ... |
if (data) { prOpts.data = buildRelationsList(data, ["intake", "acquisition"]); } | prOpts.data = buildRelationsList(data, ["intake", "acquisition"]); | (function ($) { var setupTestDataContext = function (csid, recordType) { return { type: "cspace.dataContext", options: { urlFactory: { type: "cspace.dataContext.testUrlFactory", options: { resourceMapper: { ... |
var searchToRelateDialogTest = new jqUnit.TestCase("SearchToRelateDialog Tests", function () { cspace.util.isTest = true; }); | function () { testModel = {}; fluid.model.copyModel(testModel, baseModel); applier = fluid.makeChangeApplier(testModel); testOpts = {}; fluid.model.copyModel(testOpts, baseTestOpts); }, function () { | var searchToRelateDialogTest = new jqUnit.TestCase("SearchToRelateDialog Tests", function () { cspace.util.isTest = true; }); |
}, | } | (function($) { var logoDefaults = { prefix: "http://l.longtailvideo.com/html5/0/", file: "logo.png", link: "http://www.longtailvideo.com/players/jw-flv-player/", margin: 8, out: 0.5, over: 1, timeout: 3, hide: "true", position: "bottom-left", width: 93, height: 30 }; displays = {}; $.fn.jwplayerDisplay = f... |
}, logoDefaults.timeout * 1000) | }, logoDefaults.timeout * 1000); | (function($) { var logoDefaults = { prefix: "http://l.longtailvideo.com/html5/0/", file: "logo.png", link: "http://www.longtailvideo.com/players/jw-flv-player/", margin: 8, out: 0.5, over: 1, timeout: 3, hide: "true", position: "bottom-left", width: 93, height: 30 }; displays = {}; $.fn.jwplayerDisplay = f... |
expect(18); | expect(16); | (function($) {module("core - selectors");function isFocusable(selector, msg) { ok($(selector).is(':focusable'), msg + " - selector " + selector + " is focusable");}function isNotFocusable(selector, msg) { ok($(selector).length && !$(selector).is(':focusable'), msg + " - selector " + selector + " is not focusable");}fun... |
isFocusable('#visibleAncestor-areaWithHref', 'area with href'); isNotFocusable('#visibleAncestor-areaWithoutHref', 'area without href'); | (function($) {module("core - selectors");function isFocusable(selector, msg) { ok($(selector).is(':focusable'), msg + " - selector " + selector + " is focusable");}function isNotFocusable(selector, msg) { ok($(selector).length && !$(selector).is(':focusable'), msg + " - selector " + selector + " is not focusable");}fun... | |
isTabbable('#visibleAncestor-areaWithHref', 'area with href'); isNotTabbable('#visibleAncestor-areaWithoutHref', 'area without href'); | (function($) {module("core - selectors");function isFocusable(selector, msg) { ok($(selector).is(':focusable'), msg + " - selector " + selector + " is focusable");}function isNotFocusable(selector, msg) { ok($(selector).length && !$(selector).is(':focusable'), msg + " - selector " + selector + " is not focusable");}fun... | |
test("Tabbable - disabled elements", function() { | test("tabbable - disabled elements", function() { | (function($) {module("core - selectors");function isFocusable(selector, msg) { ok($(selector).is(':focusable'), msg + " - selector " + selector + " is focusable");}function isNotFocusable(selector, msg) { ok($(selector).length && !$(selector).is(':focusable'), msg + " - selector " + selector + " is not focusable");}fun... |
test("Tabbable - hidden styles", function() { | test("tabbable - hidden styles", function() { | (function($) {module("core - selectors");function isFocusable(selector, msg) { ok($(selector).is(':focusable'), msg + " - selector " + selector + " is focusable");}function isNotFocusable(selector, msg) { ok($(selector).length && !$(selector).is(':focusable'), msg + " - selector " + selector + " is not focusable");}fun... |
test("Tabbable - natively tabbable with various tabindex", function() { | test("tabbable - natively tabbable with various tabindex", function() { | (function($) {module("core - selectors");function isFocusable(selector, msg) { ok($(selector).is(':focusable'), msg + " - selector " + selector + " is focusable");}function isNotFocusable(selector, msg) { ok($(selector).length && !$(selector).is(':focusable'), msg + " - selector " + selector + " is not focusable");}fun... |
test("Tabbable - not natively tabbable with various tabindex", function() { | test("tabbable - not natively tabbable with various tabindex", function() { | (function($) {module("core - selectors");function isFocusable(selector, msg) { ok($(selector).is(':focusable'), msg + " - selector " + selector + " is focusable");}function isNotFocusable(selector, msg) { ok($(selector).length && !$(selector).is(':focusable'), msg + " - selector " + selector + " is not focusable");}fun... |
test("Tabbable - invalid tabindex", function() { | test("tabbable - invalid tabindex", function() { | (function($) {module("core - selectors");function isFocusable(selector, msg) { ok($(selector).is(':focusable'), msg + " - selector " + selector + " is focusable");}function isNotFocusable(selector, msg) { ok($(selector).length && !$(selector).is(':focusable'), msg + " - selector " + selector + " is not focusable");}fun... |
test("tabbable - area elements", function() { isNotTabbable('#areaCoordsNoHref', 'coords but no href'); isTabbable('#areaCoordsHref', 'coords and href'); isTabbable('#areaCoordsNoSizeHref', 'coords of zero px and href'); isTabbable('#areaNoCoordsHref', 'href but no coords'); isNotTabbable('#areaNoImg', 'not associated ... | (function($) {module("core - selectors");function isFocusable(selector, msg) { ok($(selector).is(':focusable'), msg + " - selector " + selector + " is focusable");}function isNotFocusable(selector, msg) { ok($(selector).length && !$(selector).is(':focusable'), msg + " - selector " + selector + " is not focusable");}fun... | |
$(document).ready(function () { var chooser; var model = { | var model = { | (function ($) { $(document).ready(function () { var chooser; var model = { "list": ["val1", "val2", "val3"], "samples": ["sample1", "sample2", "sample3"], "names": ["name1", "name2", "name3"] }; var options = { listeners: { afterRender: funct... |
var options = { listeners: { afterRender: function () { start(); } }, model: model, templateUrl: "../../main/webapp/html/NumberPatternChooser.html" }; | numberPatternChooser = cspace.numberPatternChooser(".info-value", testOpts); stop(); }); | (function ($) { $(document).ready(function () { var chooser; var model = { "list": ["val1", "val2", "val3"], "samples": ["sample1", "sample2", "sample3"], "names": ["name1", "name2", "name3"] }; var options = { listeners: { afterRender: funct... |
var mySetup = function () { stop(); chooser = cspace.numberPatternChooser(".info-value", options); }; var numberPatternChooserTest = new jqUnit.TestCase("NumberPatternChooser Tests", mySetup); numberPatternChooserTest.test("Construction", function () { jqUnit.isVisible("Number pattern chooser button should be visible... | (function ($) { $(document).ready(function () { var chooser; var model = { "list": ["val1", "val2", "val3"], "samples": ["sample1", "sample2", "sample3"], "names": ["name1", "name2", "name3"] }; var options = { listeners: { afterRender: funct... | |
v = db[ x ].validate() assert( v.valid, x + " " + tojson( v ) ); | v = db[ x ].validate(); if ( !v.valid ) { print( x ); printjson( v ); } | db.getCollectionNames().forEach( function( x ) { v = db[ x ].validate() assert( v.valid, x + " " + tojson( v ) ); } ); |
var repeatableTest = new jqUnit.TestCase("Repeatable Tests", function () { repeatableTest.fetchTemplate("../../main/webapp/html/ObjectEntryTemplate.html", ".csc-object-entry-template"); | repeatableTest.test("Markup Generation for Basic Component", function () { expect(10); var myRepeatable = basicSetup({text: "blue"}); basicMarkupGenerateTest(myRepeatable.container, ".cst-simpleTestField", "blue"); | var repeatableTest = new jqUnit.TestCase("Repeatable Tests", function () { repeatableTest.fetchTemplate("../../main/webapp/html/ObjectEntryTemplate.html", ".csc-object-entry-template"); }); |
if ( this._value() === this.max ) { this._trigger( "complete" ); } | (function( $, undefined ) {$.widget( "ui.progressbar", { options: { value: 0 }, min: 0, max: 100, _create: function() { this.element .addClass( "ui-progressbar ui-widget ui-widget-content ui-corner-all" ) .attr({ role: "progressbar", "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow... | |
var el = $(this), props = ['position','top','left']; | var el = $(this), props = ['position','top','bottom','left','right']; | (function( $, undefined ) {$.effects.slide = function(o) { return this.queue(function() { // Create element var el = $(this), props = ['position','top','left']; // Set options var mode = $.effects.setMode(el, o.options.mode || 'show'); // Set Mode var direction = o.options.direction || 'left'; // Default Direction... |
same(div[0], div.testWidget("widget")[0]); | same(div.testWidget("widget")[0], div[0]); same(div.testWidget("widget").end()[0], div[0]); | (function($) {module('widget factory', { teardown: function() { delete $.ui.testWidget; }});test('widget creation', function() { var myPrototype = { _create: function() {}, creationTest: function() {} }; $.widget('ui.testWidget', myPrototype); ok($.isFunction($.ui.testWidget), 'constructor was created'); equals('ob... |
return wrapper; | return this.element.pushStack(wrapper.get()); | (function($) {module('widget factory', { teardown: function() { delete $.ui.testWidget; }});test('widget creation', function() { var myPrototype = { _create: function() {}, creationTest: function() {} }; $.widget('ui.testWidget', myPrototype); ok($.isFunction($.ui.testWidget), 'constructor was created'); equals('ob... |
same(wrapper[0], $("<div></div>").testWidget().testWidget("widget")[0]); | var div = $("<div></div>").testWidget(); same(div.testWidget("widget")[0], wrapper[0]); same(div.testWidget("widget").end()[0], div[0]); | (function($) {module('widget factory', { teardown: function() { delete $.ui.testWidget; }});test('widget creation', function() { var myPrototype = { _create: function() {}, creationTest: function() {} }; $.widget('ui.testWidget', myPrototype); ok($.isFunction($.ui.testWidget), 'constructor was created'); equals('ob... |
if (jwplayer.utils.html5CanPlay(vid, sourceModel)) { | if (jwplayer.utils.html5CanPlay(vid, sourceModel.file)) { | (function(jwplayer) { var _states = { "ended": jwplayer.api.events.state.IDLE, "playing": jwplayer.api.events.state.PLAYING, "pause": jwplayer.api.events.state.PAUSED, "buffering": jwplayer.api.events.state.BUFFERING }; var _css = jwplayer.utils.css; jwplayer.html5.mediavideo = function(model, container) { var _... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.