Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Unified Diff: Tools/GardeningServer/scripts/ui/actions.js

Issue 355213003: Remove some jQuery from Garden-o-matic (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/GardeningServer/scripts/ui/actions.js
diff --git a/Tools/GardeningServer/scripts/ui/actions.js b/Tools/GardeningServer/scripts/ui/actions.js
index cb6c5c6461a4396d87834484ed7478464ae2a37b..10bd4bb76006cca50ead4bb09e23bdf739478f18 100644
--- a/Tools/GardeningServer/scripts/ui/actions.js
+++ b/Tools/GardeningServer/scripts/ui/actions.js
@@ -31,7 +31,7 @@ ui.actions = ui.actions || {};
var Action = base.extends('button', {
init: function() {
this._eventName = null;
- $(this).addClass('action');
+ this.classList.add('action');
this.addEventListener('click', function(event) {
if (this._eventName) {
$(this).trigger(this._eventName);
@@ -40,7 +40,7 @@ var Action = base.extends('button', {
}.bind(this));
},
makeDefault: function() {
- $(this).addClass('default');
+ this.classList.add('default');
return this;
}
});
@@ -57,7 +57,7 @@ ui.actions.Next = base.extends(Action, {
init: function() {
this.innerHTML = '▶';
this._eventName = 'next';
- $(this).addClass('next');
+ this.classList.add('next');
}
});
@@ -65,7 +65,7 @@ ui.actions.Previous = base.extends(Action, {
init: function() {
this.innerHTML = '◀';
this._eventName = 'previous';
- $(this).addClass('previous');
+ this.classList.add('previous');
}
});
@@ -80,7 +80,7 @@ ui.actions.List = base.extends('ul', {
{
var item = document.createElement('li');
item.appendChild(action);
- $(this).append(item);
+ this.appendChild(item);
}
});
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698