Skip to content

Commit 6561270

Browse files
committed
Switch dependency to render.
1 parent 1c2d57e commit 6561270

File tree

4 files changed

+10
-13
lines changed

4 files changed

+10
-13
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"dependencies": {
3333
"class": "github:anchorjs/class/master",
3434
"events": "github:anchorjs/events/master",
35-
"sail": "github:sailjs/sail/master"
35+
"render": "github:sailjs/render/master"
3636
}
3737
}
3838
}

test/www/js/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ require.config({
99
{ name: 'view', location: '../../../..', main: 'view' },
1010
{ name: 'events' },
1111
{ name: 'dom' },
12-
{ name: 'sail' },
12+
{ name: 'render' },
1313
{ name: 'mocha-cloud', location: '../support', main: 'mocha-cloud' }
1414
],
1515
shim: {

test/www/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"require": "github:jrburke/requirejs/2.1.2",
66
"class": "github:anchorjs/class/master",
77
"events": "github:anchorjs/events/master",
8-
"sail": "github:sailjs/sail/master",
8+
"render": "github:sailjs/render/master",
99
"mocha": "github:visionmedia/mocha/1.7.4",
1010
"chai": "github:chaijs/chai/1.4.1",
1111
"selector": "github:anchorjs/selector/master",

view.js

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
1-
define(['events',
2-
'class',
3-
'sail'],
4-
function(Emitter, clazz, sail) {
1+
define(['render',
2+
'events',
3+
'class'],
4+
function(render, Emitter, clazz) {
55

66
function View(el, options) {
77
View.super_.call(this);
88

99
if (typeof el == 'string') {
10-
var $ = sail.$
11-
, render = sail.render;
12-
13-
var out = render(el, options);
10+
var out = render.render(el, options);
1411
if (typeof out == 'string') {
15-
this.el = $(out);
12+
this.el = render.$(out);
1613
} else if (typeof out == 'function') {
17-
this.el = $(out(options));
14+
this.el = render.$(out(options));
1815
}
1916
} else {
2017
this.el = el;

0 commit comments

Comments
 (0)