correcting a few name collisions

This commit is contained in:
Danny Yoo 2013-03-29 18:01:33 -06:00
parent b2ac271d9c
commit 17ebfb5a4b
4 changed files with 12 additions and 12 deletions

View File

@ -133,9 +133,9 @@ var makeCanvas = function(width, height) {
canvas.width = width;
canvas.height = height;
$(canvas).css('width', canvas.width + "px");
$(canvas).css('height', canvas.height + "px");
$(canvas).css('padding', '0px');
jQuery(canvas).css('width', canvas.width + "px");
jQuery(canvas).css('height', canvas.height + "px");
jQuery(canvas).css('padding', '0px');
// KLUDGE: IE compatibility uses /js/excanvas.js, and dynamic
// elements must be marked this way.
@ -185,14 +185,14 @@ BaseImage.prototype.toDomNode = function(params) {
// for calling this after the dom node is attached to the
// document.
var onAfterAttach = function(event) {
// $(canvas).unbind('afterAttach', onAfterAttach);
// jQuery(canvas).unbind('afterAttach', onAfterAttach);
var ctx = this.getContext("2d");
that.render(ctx, 0, 0);
};
$(canvas).bind('afterAttach', onAfterAttach);
jQuery(canvas).bind('afterAttach', onAfterAttach);
// Canvases lose their drawn content on cloning. data may help us to preserve it.
$(canvas).data('toRender', onAfterAttach);
jQuery(canvas).data('toRender', onAfterAttach);
return canvas;
};

View File

@ -1,6 +1,6 @@
/*jslint browser: true, unparam: true, vars: true, white: true, plusplus: true, maxerr: 50, indent: 4, forin: true */
/*global plt,MACHINE,$,EXPORTS,TreeCursor*/
(function() {
(function($) {
"use strict";
@ -2286,4 +2286,4 @@
EXPORTS['EventHandler'] = EventHandler;
EXPORTS['wrapFunction'] = wrapFunction;
//////////////////////////////////////////////////////////////////////
}());
}(jQuery));

View File

@ -24,9 +24,9 @@ var finalizeClosureCall = plt.baselib.functions.finalizeClosureCall;
//////////////////////////////////////////////////////////////////////
var bigBang = function(MACHINE, initW, handlers) {
var outerToplevelNode = $('<span/>').css('padding', '0px').get(0);
var outerToplevelNode = jQuery('<span/>').css('padding', '0px').get(0);
MACHINE.params.currentOutputPort.writeDomNode(MACHINE, outerToplevelNode);
var toplevelNode = $('<span/>').css('padding', '0px').appendTo(outerToplevelNode).get(0);
var toplevelNode = jQuery('<span/>').css('padding', '0px').appendTo(outerToplevelNode).get(0);
var configs = [];
var isOutputConfigSeen = false;

View File

@ -731,8 +731,8 @@ var rawJsworld = {};
return {
onRegister: function(top) {
//http://www.w3.org/TR/html5/editing.html#sequential-focus-navigation-and-the-tabindex-attribue
$(top).attr('tabindex', 1);
$(top).focus();
jQuery(top).attr('tabindex', 1);
jQuery(top).focus();
attachEvent(top, 'keydown', wrappedPress);
},
onUnregister: function(top) {